Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188808
b: refs/heads/master
c: 352fa6a
h: refs/heads/master
v: v3
  • Loading branch information
Mel Gorman authored and Greg Kroah-Hartman committed Mar 19, 2010
1 parent 9c24f2b commit 7b8d7e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 87a6aca504d65f242589583e04df5e74b5eae1fe
refs/heads/master: 352fa6ad16b89f8ffd1a93b4419b1a8f2259feab
9 changes: 5 additions & 4 deletions trunk/include/linux/tty.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@ struct tty_buffer {

/*
* We default to dicing tty buffer allocations to this many characters
* in order to avoid multiple page allocations. We assume tty_buffer itself
* is under 256 bytes. See tty_buffer_find for the allocation logic this
* must match
* in order to avoid multiple page allocations. We know the size of
* tty_buffer itself but it must also be taken into account that the
* the buffer is 256 byte aligned. See tty_buffer_find for the allocation
* logic this must match
*/

#define TTY_BUFFER_PAGE ((PAGE_SIZE - 256) / 2)
#define TTY_BUFFER_PAGE (((PAGE_SIZE - sizeof(struct tty_buffer)) / 2) & ~0xFF)


struct tty_bufhead {
Expand Down

0 comments on commit 7b8d7e9

Please sign in to comment.