Commit 79d22ee8 authored by Matt Mackall's avatar Matt Mackall Committed by Linus Torvalds

[PATCH] base-small: shrink console buffer

CONFIG_BASE_SMALL reduce console transfer buffer
Signed-off-by: default avatarMatt Mackall <mpm@selenic.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 65f60187
...@@ -84,7 +84,8 @@ void reset_vc(struct vc_data *vc); ...@@ -84,7 +84,8 @@ void reset_vc(struct vc_data *vc);
* vc_screen.c shares this temporary buffer with the console write code so that * vc_screen.c shares this temporary buffer with the console write code so that
* we can easily avoid touching user space while holding the console spinlock. * we can easily avoid touching user space while holding the console spinlock.
*/ */
#define CON_BUF_SIZE PAGE_SIZE
#define CON_BUF_SIZE (CONFIG_BASE_SMALL ? 256 : PAGE_SIZE)
extern char con_buf[CON_BUF_SIZE]; extern char con_buf[CON_BUF_SIZE];
extern struct semaphore con_buf_sem; extern struct semaphore con_buf_sem;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment