diff options
Diffstat (limited to 'kernel/printk.c')
-rw-r--r-- | kernel/printk.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/kernel/printk.c b/kernel/printk.c index 4a090621f379..bee36100f110 100644 --- a/kernel/printk.c +++ b/kernel/printk.c | |||
@@ -32,7 +32,6 @@ | |||
32 | #include <linux/security.h> | 32 | #include <linux/security.h> |
33 | #include <linux/bootmem.h> | 33 | #include <linux/bootmem.h> |
34 | #include <linux/syscalls.h> | 34 | #include <linux/syscalls.h> |
35 | #include <linux/jiffies.h> | ||
36 | 35 | ||
37 | #include <asm/uaccess.h> | 36 | #include <asm/uaccess.h> |
38 | 37 | ||
@@ -567,19 +566,6 @@ static int printk_time = 0; | |||
567 | #endif | 566 | #endif |
568 | module_param_named(time, printk_time, bool, S_IRUGO | S_IWUSR); | 567 | module_param_named(time, printk_time, bool, S_IRUGO | S_IWUSR); |
569 | 568 | ||
570 | static int __init printk_time_setup(char *str) | ||
571 | { | ||
572 | if (*str) | ||
573 | return 0; | ||
574 | printk_time = 1; | ||
575 | printk(KERN_NOTICE "The 'time' option is deprecated and " | ||
576 | "is scheduled for removal in early 2008\n"); | ||
577 | printk(KERN_NOTICE "Use 'printk.time=<value>' instead\n"); | ||
578 | return 1; | ||
579 | } | ||
580 | |||
581 | __setup("time", printk_time_setup); | ||
582 | |||
583 | /* Check if we have any console registered that can be called early in boot. */ | 569 | /* Check if we have any console registered that can be called early in boot. */ |
584 | static int have_callable_console(void) | 570 | static int have_callable_console(void) |
585 | { | 571 | { |
@@ -1265,6 +1251,7 @@ void tty_write_message(struct tty_struct *tty, char *msg) | |||
1265 | return; | 1251 | return; |
1266 | } | 1252 | } |
1267 | 1253 | ||
1254 | #if defined CONFIG_PRINTK | ||
1268 | /* | 1255 | /* |
1269 | * printk rate limiting, lifted from the networking subsystem. | 1256 | * printk rate limiting, lifted from the networking subsystem. |
1270 | * | 1257 | * |
@@ -1334,3 +1321,4 @@ bool printk_timed_ratelimit(unsigned long *caller_jiffies, | |||
1334 | return false; | 1321 | return false; |
1335 | } | 1322 | } |
1336 | EXPORT_SYMBOL(printk_timed_ratelimit); | 1323 | EXPORT_SYMBOL(printk_timed_ratelimit); |
1324 | #endif | ||