mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCHv2 1/2] sched: Fixed cpupri_init stub signature; switched from macros to inlines.
@ 2012-08-20 14:00 Trevor Brandt
  2012-08-20 14:00 ` [PATCHv2 2/2] sched: Support compiling out real-time scheduling with REALTIME_SCHED Trevor Brandt
  0 siblings, 1 reply; 2+ messages in thread
From: Trevor Brandt @ 2012-08-20 14:00 UTC (permalink / raw)
  To: Trevor Brandt, Josh Triplett, Ingo Molnar, Peter Zijlstra, linux-kernel
  Cc: team-fjord

Fixed the cpupri_init stub in cpupri.h so it takes one argument
instead of none. At the same time, changed the cpupri stubs from
macros to inlines.

Signed-off-by: Trevor Brandt <tjbrandt@gmail.com>
---
 kernel/sched/cpupri.h |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/kernel/sched/cpupri.h b/kernel/sched/cpupri.h
index f6d7561..fd7914c 100644
--- a/kernel/sched/cpupri.h
+++ b/kernel/sched/cpupri.h
@@ -27,8 +27,11 @@ 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)
+static inline void cpupri_set(struct cpupri *cp, int cpu, int pri) { }
+static inline int cpupri_init(struct cpupri *cp)
+{
+	return 0;
+}
 #endif
 
 #endif /* _LINUX_CPUPRI_H */
-- 
1.7.9.5


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

end of thread, other threads:[~2012-08-20 14:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-20 14:00 [PATCHv2 1/2] sched: Fixed cpupri_init stub signature; switched from macros to inlines Trevor Brandt
2012-08-20 14:00 ` [PATCHv2 2/2] sched: Support compiling out real-time scheduling with REALTIME_SCHED Trevor Brandt

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

all inboxes | Powered by JetHome®