aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/kernel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index aaa998f65c7a..113ac8d0425f 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -200,6 +200,8 @@ extern struct ratelimit_state printk_ratelimit_state;
200extern int printk_ratelimit(void); 200extern int printk_ratelimit(void);
201extern bool printk_timed_ratelimit(unsigned long *caller_jiffies, 201extern bool printk_timed_ratelimit(unsigned long *caller_jiffies,
202 unsigned int interval_msec); 202 unsigned int interval_msec);
203extern void printk_tick(void);
204extern int printk_needs_cpu(int);
203#else 205#else
204static inline int vprintk(const char *s, va_list args) 206static inline int vprintk(const char *s, va_list args)
205 __attribute__ ((format (printf, 1, 0))); 207 __attribute__ ((format (printf, 1, 0)));
@@ -211,6 +213,8 @@ static inline int printk_ratelimit(void) { return 0; }
211static inline bool printk_timed_ratelimit(unsigned long *caller_jiffies, \ 213static inline bool printk_timed_ratelimit(unsigned long *caller_jiffies, \
212 unsigned int interval_msec) \ 214 unsigned int interval_msec) \
213 { return false; } 215 { return false; }
216static inline void printk_tick(void) { }
217static inline int printk_needs_cpu(int) { return 0; }
214#endif 218#endif
215 219
216extern void asmlinkage __attribute__((format(printf, 1, 2))) 220extern void asmlinkage __attribute__((format(printf, 1, 2)))