aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r--include/linux/kernel.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 328bca609b9b..45894a469a03 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -123,7 +123,7 @@ extern int _cond_resched(void);
123# define might_resched() do { } while (0) 123# define might_resched() do { } while (0)
124#endif 124#endif
125 125
126#ifdef CONFIG_DEBUG_SPINLOCK_SLEEP 126#if defined(CONFIG_DEBUG_SPINLOCK_SLEEP) || defined(CONFIG_DEBUG_PREEMPT)
127 void __might_sleep(char *file, int line, int preempt_offset); 127 void __might_sleep(char *file, int line, int preempt_offset);
128/** 128/**
129 * might_sleep - annotation for functions that can sleep 129 * might_sleep - annotation for functions that can sleep
@@ -286,6 +286,12 @@ extern void printk_tick(void);
286extern void asmlinkage __attribute__((format(printf, 1, 2))) 286extern void asmlinkage __attribute__((format(printf, 1, 2)))
287 early_printk(const char *fmt, ...); 287 early_printk(const char *fmt, ...);
288 288
289#ifdef CONFIG_PREEMPT_RT
290extern void zap_rt_locks(void);
291#else
292# define zap_rt_locks() do { } while (0)
293#endif
294
289unsigned long int_sqrt(unsigned long); 295unsigned long int_sqrt(unsigned long);
290 296
291static inline void console_silent(void) 297static inline void console_silent(void)
@@ -315,6 +321,7 @@ extern int root_mountflags;
315/* Values used for system_state */ 321/* Values used for system_state */
316extern enum system_states { 322extern enum system_states {
317 SYSTEM_BOOTING, 323 SYSTEM_BOOTING,
324 SYSTEM_BOOTING_SCHEDULER_OK,
318 SYSTEM_RUNNING, 325 SYSTEM_RUNNING,
319 SYSTEM_HALT, 326 SYSTEM_HALT,
320 SYSTEM_POWER_OFF, 327 SYSTEM_POWER_OFF,