Commit deaf2227ddf657a260e923db44b6f0974d9bb782

Authored by Ingo Molnar
1 parent 9a4e715914

sched: clean up, move __sched_text_start/end to sched.h

move __sched_text_start/end to sched.h. No code changed:

   text    data     bss     dec     hex filename
  26582    2310      28   28920    70f8 sched.o.before
  26582    2310      28   28920    70f8 sched.o.after

Signed-off-by: Ingo Molnar <mingo@elte.hu>

Showing 2 changed files with 4 additions and 3 deletions Side-by-side Diff

include/linux/sched.h
... ... @@ -282,6 +282,10 @@
282 282  
283 283 /* Attach to any functions which should be ignored in wchan output. */
284 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 289 /* Is this address in the __sched functions? */
286 290 extern int in_sched_functions(unsigned long addr);
287 291  
... ... @@ -6708,9 +6708,6 @@
6708 6708  
6709 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 6711 return in_lock_functions(addr) ||
6715 6712 (addr >= (unsigned long)__sched_text_start
6716 6713 && addr < (unsigned long)__sched_text_end);