[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1523516959-5761-1-git-send-email-ulf.hansson@linaro.org>
Date: Thu, 12 Apr 2018 09:09:18 +0200
From: Ulf Hansson <ulf.hansson@...aro.org>
To: Frederic Weisbecker <frederic@...nel.org>,
Ingo Molnar <mingo@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>
Cc: "Rafael J . Wysocki" <rjw@...ysocki.net>,
Ulf Hansson <ulf.hansson@...aro.org>, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 1/2] nohz: Align types to bool for tick_nohz_tick_stopped()
The intent was likely to also make the inline version a bool, so let's
change this.
Fixes: a364298359e7 ("nohz: Convert tick_nohz_tick_stopped() to bool")
Signed-off-by: Ulf Hansson <ulf.hansson@...aro.org>
---
Changes in v2:
- Rebased on top of Linus' latest master to apply cleanly.
---
include/linux/tick.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/tick.h b/include/linux/tick.h
index 55388ab..4132eba 100644
--- a/include/linux/tick.h
+++ b/include/linux/tick.h
@@ -137,7 +137,7 @@ static inline void tick_nohz_idle_stop_tick_protected(void)
#else /* !CONFIG_NO_HZ_COMMON */
#define tick_nohz_enabled (0)
-static inline int tick_nohz_tick_stopped(void) { return 0; }
+static inline bool tick_nohz_tick_stopped(void) { return false; }
static inline int tick_nohz_tick_stopped_cpu(int cpu) { return 0; }
static inline void tick_nohz_idle_stop_tick(void) { }
static inline void tick_nohz_idle_retain_tick(void) { }
--
2.7.4
Powered by blists - more mailing lists