sched/deadline: Remove unnecessary definitions in cpudeadline.h
authorpang.xunlei <pang.xunlei@linaro.org>
Thu, 6 Nov 2014 07:52:04 +0000 (15:52 +0800)
committerIngo Molnar <mingo@kernel.org>
Sun, 16 Nov 2014 09:59:00 +0000 (10:59 +0100)
Actually, cpudl_set() and cpudl_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: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1415260327-30465-4-git-send-email-pang.xunlei@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/cpudeadline.h

index 538c9796ad4a0b085e4c4284683fe7856b420153..020039bd1326852126480fa5e5038f58d26ca18c 100644 (file)
@@ -25,9 +25,6 @@ int cpudl_find(struct cpudl *cp, struct task_struct *p,
 void cpudl_set(struct cpudl *cp, int cpu, u64 dl, int is_valid);
 int cpudl_init(struct cpudl *cp);
 void cpudl_cleanup(struct cpudl *cp);
-#else
-#define cpudl_set(cp, cpu, dl) do { } while (0)
-#define cpudl_init() do { } while (0)
 #endif /* CONFIG_SMP */
 
 #endif /* _LINUX_CPUDL_H */