sched/cpupri: Remove unnecessary definitions in cpupri.h
authorpang.xunlei <pang.xunlei@linaro.org>
Thu, 6 Nov 2014 07:52:01 +0000 (15:52 +0800)
committerIngo Molnar <mingo@kernel.org>
Sun, 16 Nov 2014 09:58:59 +0000 (10:58 +0100)
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>
kernel/sched/cpupri.h

index 6b033347fdfd1c787bae013ba02d390e256a44f3..63cbb9ca049698ad1c8a0c0d5430b7911b253baf 100644 (file)
@@ -26,9 +26,6 @@ int  cpupri_find(struct cpupri *cp,
 void cpupri_set(struct cpupri *cp, int cpu, int pri);
 int cpupri_init(struct cpupri *cp);
 void cpupri_cleanup(struct cpupri *cp);
-#else
-#define cpupri_set(cp, cpu, pri) do { } while (0)
-#define cpupri_init() do { } while (0)
 #endif
 
 #endif /* _LINUX_CPUPRI_H */