diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/tty.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h index 7a9a3b0a6b5a..5fd5d6f1ebc4 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h | |||
| @@ -53,17 +53,6 @@ static inline char *flag_buf_ptr(struct tty_buffer *b, int ofs) | |||
| 53 | return (char *)char_buf_ptr(b, ofs) + b->size; | 53 | return (char *)char_buf_ptr(b, ofs) + b->size; |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | /* | ||
| 57 | * We default to dicing tty buffer allocations to this many characters | ||
| 58 | * in order to avoid multiple page allocations. We know the size of | ||
| 59 | * tty_buffer itself but it must also be taken into account that the | ||
| 60 | * the buffer is 256 byte aligned. See tty_buffer_find for the allocation | ||
| 61 | * logic this must match | ||
| 62 | */ | ||
| 63 | |||
| 64 | #define TTY_BUFFER_PAGE (((PAGE_SIZE - sizeof(struct tty_buffer)) / 2) & ~0xFF) | ||
| 65 | |||
| 66 | |||
| 67 | struct tty_bufhead { | 56 | struct tty_bufhead { |
| 68 | struct tty_buffer *head; /* Queue head */ | 57 | struct tty_buffer *head; /* Queue head */ |
| 69 | struct work_struct work; | 58 | struct work_struct work; |
