diff options
-rw-r--r-- | include/linux/sched.h | 4 | ||||
-rw-r--r-- | kernel/sched.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index ee800e7a70de..ac3d496fbd20 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -282,6 +282,10 @@ static inline void touch_all_softlockup_watchdogs(void) | |||
282 | 282 | ||
283 | /* Attach to any functions which should be ignored in wchan output. */ | 283 | /* Attach to any functions which should be ignored in wchan output. */ |
284 | #define __sched __attribute__((__section__(".sched.text"))) | 284 | #define __sched __attribute__((__section__(".sched.text"))) |
285 | |||
286 | /* Linker adds these: start and end of __sched functions */ | ||
287 | extern char __sched_text_start[], __sched_text_end[]; | ||
288 | |||
285 | /* Is this address in the __sched functions? */ | 289 | /* Is this address in the __sched functions? */ |
286 | extern int in_sched_functions(unsigned long addr); | 290 | extern int in_sched_functions(unsigned long addr); |
287 | 291 | ||
diff --git a/kernel/sched.c b/kernel/sched.c index 89cb2dac8bfd..98dcdf272db3 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -6708,9 +6708,6 @@ void __init sched_init_smp(void) | |||
6708 | 6708 | ||
6709 | int in_sched_functions(unsigned long addr) | 6709 | int in_sched_functions(unsigned long addr) |
6710 | { | 6710 | { |
6711 | /* Linker adds these: start and end of __sched functions */ | ||
6712 | extern char __sched_text_start[], __sched_text_end[]; | ||
6713 | |||
6714 | return in_lock_functions(addr) || | 6711 | return in_lock_functions(addr) || |
6715 | (addr >= (unsigned long)__sched_text_start | 6712 | (addr >= (unsigned long)__sched_text_start |
6716 | && addr < (unsigned long)__sched_text_end); | 6713 | && addr < (unsigned long)__sched_text_end); |