diff options
author | pang.xunlei <pang.xunlei@linaro.org> | 2014-11-06 02:52:01 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-11-16 04:58:59 -0500 |
commit | 74e6942fbc7f52320c2fc900a9a6b0a315927915 (patch) | |
tree | 0e5aea8e3a4724daae9eda5bdf741ead365ecfd3 /kernel/sched | |
parent | c51b8ab5ad972df26fd9c0ffad34870e98273c4c (diff) |
sched/cpupri: Remove unnecessary definitions in cpupri.h
Actually, cpupri_set() and cpupri_init() can never be used without
CONFIG_SMP.
Signed-off-by: pang.xunlei <pang.xunlei@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Juri Lelli <juri.lelli@gmail.com>
Cc: "pang.xunlei" <pang.xunlei@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1415260327-30465-1-git-send-email-pang.xunlei@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/cpupri.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/sched/cpupri.h b/kernel/sched/cpupri.h index 6b033347fdfd..63cbb9ca0496 100644 --- a/kernel/sched/cpupri.h +++ b/kernel/sched/cpupri.h | |||
@@ -26,9 +26,6 @@ int cpupri_find(struct cpupri *cp, | |||
26 | void cpupri_set(struct cpupri *cp, int cpu, int pri); | 26 | void cpupri_set(struct cpupri *cp, int cpu, int pri); |
27 | int cpupri_init(struct cpupri *cp); | 27 | int cpupri_init(struct cpupri *cp); |
28 | void cpupri_cleanup(struct cpupri *cp); | 28 | void cpupri_cleanup(struct cpupri *cp); |
29 | #else | ||
30 | #define cpupri_set(cp, cpu, pri) do { } while (0) | ||
31 | #define cpupri_init() do { } while (0) | ||
32 | #endif | 29 | #endif |
33 | 30 | ||
34 | #endif /* _LINUX_CPUPRI_H */ | 31 | #endif /* _LINUX_CPUPRI_H */ |