mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "tip-bot for pang.xunlei" <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: rostedt@goodmis.org, juri.lelli@gmail.com,
	pang.xunlei@linaro.org, tglx@linutronix.de, mingo@kernel.org,
	torvalds@linux-foundation.org, linux-kernel@vger.kernel.org,
	hpa@zytor.com, peterz@infradead.org
Subject: [tip:sched/core] sched/cpupri: Remove unnecessary definitions in cpupri.h
Date: Sun, 16 Nov 2014 04:33:02 -0800	[thread overview]
Message-ID: <tip-74e6942fbc7f52320c2fc900a9a6b0a315927915@git.kernel.org> (raw)
In-Reply-To: <1415260327-30465-1-git-send-email-pang.xunlei@linaro.org>

Commit-ID:  74e6942fbc7f52320c2fc900a9a6b0a315927915
Gitweb:     http://git.kernel.org/tip/74e6942fbc7f52320c2fc900a9a6b0a315927915
Author:     pang.xunlei <pang.xunlei@linaro.org>
AuthorDate: Thu, 6 Nov 2014 15:52:01 +0800
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Sun, 16 Nov 2014 10:58:59 +0100

sched/cpupri: Remove unnecessary definitions in cpupri.h

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 | 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 */

      parent reply	other threads:[~2014-11-16 12:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-06  7:52 [PATCH v4 1/7] " 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-bot for pang.xunlei [this message]

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=tip-74e6942fbc7f52320c2fc900a9a6b0a315927915@git.kernel.org \
    --to=tipbot@zytor.com \
    --cc=hpa@zytor.com \
    --cc=juri.lelli@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=pang.xunlei@linaro.org \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.org \
    /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

Powered by JetHome