mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 1/7] sched/cpupri: Remove unnecessary definitions in cpupri.h
@ 2014-11-06  7:52 pang.xunlei
  2014-11-06  7:52 ` [PATCH v4 2/7] sched/rt: Deal with cpupri.pri_to_cpu[CPUPRI_IDLE] for idle cases pang.xunlei
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: pang.xunlei @ 2014-11-06  7:52 UTC (permalink / raw)
  To: linux-kernel; +Cc: Peter Zijlstra, Steven Rostedt, Juri Lelli, pang.xunlei

Actually, cpupri_set() and cpupri_init() can never be used without
CONFIG_SMP.

Signed-off-by: pang.xunlei <pang.xunlei@linaro.org>
---
 kernel/sched/cpupri.h |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/kernel/sched/cpupri.h b/kernel/sched/cpupri.h
index 6b03334..63cbb9c 100644
--- a/kernel/sched/cpupri.h
+++ b/kernel/sched/cpupri.h
@@ -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 */
-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-11-16 12:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-06  7:52 [PATCH v4 1/7] sched/cpupri: Remove unnecessary definitions in cpupri.h pang.xunlei
2014-11-06  7:52 ` [PATCH v4 2/7] sched/rt: Deal with cpupri.pri_to_cpu[CPUPRI_IDLE] for idle cases pang.xunlei
2014-11-06  7:52 ` [PATCH v4 3/7] sched/rt: Optimize find_lowest_rq() to select a cache hot cpu pang.xunlei
2014-11-06  7:52 ` [PATCH v4 4/7] sched/deadline: Remove unnecessary definitions in cpudeadline.h pang.xunlei
2014-11-16 12:33   ` [tip:sched/core] " tip-bot for pang.xunlei
2014-11-06  7:52 ` [PATCH v4 5/7] sched/deadline: Fix several problems with cpudl_find() pang.xunlei
2014-11-06  7:52 ` [PATCH v4 6/7] sched/deadline: Optimize find_later_rq() to select a cache hot cpu pang.xunlei
2014-11-06  7:52 ` [PATCH v4 7/7] sched/deadline: Modify cpudl_find() for more cases of electing best_cpu pang.xunlei
2014-11-16 12:33 ` [tip:sched/core] sched/cpupri: Remove unnecessary definitions in cpupri.h tip-bot for pang.xunlei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome