diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-04-01 15:54:19 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-01 18:49:02 -0400 |
commit | 8302294f43250dc337108c51882a6007f2b1e2e0 (patch) | |
tree | 85acd4440799c46a372df9cad170fa0c21e59096 /kernel/sched.c | |
parent | 4fe70410d9a219dabb47328effccae7e7f2a6e26 (diff) | |
parent | 2e572895bf3203e881356a4039ab0fa428ed2639 (diff) |
Merge branch 'tracing/core-v2' into tracing-for-linus
Conflicts:
include/linux/slub_def.h
lib/Kconfig.debug
mm/slob.c
mm/slub.c
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 73513f4e19d..f01cb63d135 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -4781,10 +4781,7 @@ void scheduler_tick(void) | |||
4781 | #endif | 4781 | #endif |
4782 | } | 4782 | } |
4783 | 4783 | ||
4784 | #if defined(CONFIG_PREEMPT) && (defined(CONFIG_DEBUG_PREEMPT) || \ | 4784 | unsigned long get_parent_ip(unsigned long addr) |
4785 | defined(CONFIG_PREEMPT_TRACER)) | ||
4786 | |||
4787 | static inline unsigned long get_parent_ip(unsigned long addr) | ||
4788 | { | 4785 | { |
4789 | if (in_lock_functions(addr)) { | 4786 | if (in_lock_functions(addr)) { |
4790 | addr = CALLER_ADDR2; | 4787 | addr = CALLER_ADDR2; |
@@ -4794,6 +4791,9 @@ static inline unsigned long get_parent_ip(unsigned long addr) | |||
4794 | return addr; | 4791 | return addr; |
4795 | } | 4792 | } |
4796 | 4793 | ||
4794 | #if defined(CONFIG_PREEMPT) && (defined(CONFIG_DEBUG_PREEMPT) || \ | ||
4795 | defined(CONFIG_PREEMPT_TRACER)) | ||
4796 | |||
4797 | void __kprobes add_preempt_count(int val) | 4797 | void __kprobes add_preempt_count(int val) |
4798 | { | 4798 | { |
4799 | #ifdef CONFIG_DEBUG_PREEMPT | 4799 | #ifdef CONFIG_DEBUG_PREEMPT |