diff options
Diffstat (limited to 'include/linux/kernel.h')
| -rw-r--r-- | include/linux/kernel.h | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 2776423a587e..e5359b09de1d 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -111,8 +111,8 @@ static __always_inline void might_resched(void)  #endif /* CONFIG_PREEMPT_* */  #ifdef CONFIG_DEBUG_ATOMIC_SLEEP -extern void ___might_sleep(const char *file, int line, int preempt_offset); -extern void __might_sleep(const char *file, int line, int preempt_offset); +extern void __might_resched(const char *file, int line, unsigned int offsets); +extern void __might_sleep(const char *file, int line);  extern void __cant_sleep(const char *file, int line, int preempt_offset);  extern void __cant_migrate(const char *file, int line); @@ -129,7 +129,7 @@ extern void __cant_migrate(const char *file, int line);   * supposed to.   */  # define might_sleep() \ -	do { __might_sleep(__FILE__, __LINE__, 0); might_resched(); } while (0) +	do { __might_sleep(__FILE__, __LINE__); might_resched(); } while (0)  /**   * cant_sleep - annotation for functions that cannot sleep   * @@ -168,10 +168,9 @@ extern void __cant_migrate(const char *file, int line);   */  # define non_block_end() WARN_ON(current->non_block_count-- == 0)  #else -  static inline void ___might_sleep(const char *file, int line, -				   int preempt_offset) { } -  static inline void __might_sleep(const char *file, int line, -				   int preempt_offset) { } +  static inline void __might_resched(const char *file, int line, +				     unsigned int offsets) { } +static inline void __might_sleep(const char *file, int line) { }  # define might_sleep() do { might_resched(); } while (0)  # define cant_sleep() do { } while (0)  # define cant_migrate()		do { } while (0) @@ -248,6 +247,7 @@ extern bool early_boot_irqs_disabled;  extern enum system_states {  	SYSTEM_BOOTING,  	SYSTEM_SCHEDULING, +	SYSTEM_FREEING_INITMEM,  	SYSTEM_RUNNING,  	SYSTEM_HALT,  	SYSTEM_POWER_OFF, |