summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatt Mackall <mpm@selenic.com>2005-03-07 18:04:39 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-03-07 18:04:39 -0800
commit79d22ee86a32cb00096fdad4510dd7656faf401c (patch)
tree84e5562799ad72a9ff60fb2b5174c5ed86c36103 /include
parent65f6018777a8e027d7494540caccce8b0e3d27f7 (diff)
[PATCH] base-small: shrink console buffer
CONFIG_BASE_SMALL reduce console transfer buffer Signed-off-by: Matt Mackall <mpm@selenic.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/vt_kern.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/vt_kern.h b/include/linux/vt_kern.h
index cb18320adb16..dc392a1b58eb 100644
--- a/include/linux/vt_kern.h
+++ b/include/linux/vt_kern.h
@@ -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
* 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 struct semaphore con_buf_sem;