From: Trevor Brandt <tjbrandt@gmail.com>
To: Trevor Brandt <tjbrandt@gmail.com>,
Josh Triplett <josh@joshtriplett.org>,
Ingo Molnar <mingo@elte.hu>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
linux-kernel@vger.kernel.org
Cc: team-fjord@googlegroups.com
Subject: [PATCHv2 1/2] sched: Fixed cpupri_init stub signature; switched from macros to inlines.
Date: Mon, 20 Aug 2012 07:00:22 -0700 [thread overview]
Message-ID: <1345471224-14997-1-git-send-email-tjbrandt@gmail.com> (raw)
In-Reply-To: <y>
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
next reply other threads:[~2012-08-20 14:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-20 14:00 Trevor Brandt [this message]
2012-08-20 14:00 ` [PATCHv2 2/2] sched: Support compiling out real-time scheduling with REALTIME_SCHED Trevor Brandt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1345471224-14997-1-git-send-email-tjbrandt@gmail.com \
--to=tjbrandt@gmail.com \
--cc=a.p.zijlstra@chello.nl \
--cc=josh@joshtriplett.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=team-fjord@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®