printk_ratelimit() functions should use CONFIG_PRINTK

Makes an embedded image a bit smaller.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Joe Perches
2008-02-08 04:21:25 -08:00
committed by Linus Torvalds
parent 36e7891442
commit 7ef3d2fd17
3 changed files with 25 additions and 15 deletions

View File

@@ -1251,6 +1251,7 @@ void tty_write_message(struct tty_struct *tty, char *msg)
return;
}
#if defined CONFIG_PRINTK
/*
* printk rate limiting, lifted from the networking subsystem.
*
@@ -1320,3 +1321,4 @@ bool printk_timed_ratelimit(unsigned long *caller_jiffies,
return false;
}
EXPORT_SYMBOL(printk_timed_ratelimit);
#endif