* [PATCH 1/2] nohz: Align types to bool for tick_nohz_tick_stopped()
@ 2018-04-11 11:01 Ulf Hansson
2018-04-11 11:01 ` [PATCH 2/2] nohz: Align types to bool for tick_nohz_tick_stopped_cpu() Ulf Hansson
0 siblings, 1 reply; 3+ messages in thread
From: Ulf Hansson @ 2018-04-11 11:01 UTC (permalink / raw)
To: Frederic Weisbecker, Ingo Molnar, Thomas Gleixner
Cc: Rafael J . Wysocki, Ulf Hansson, linux-pm, linux-kernel
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@linaro.org>
---
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 7f8c9a1..f9070b9 100644
--- a/include/linux/tick.h
+++ b/include/linux/tick.h
@@ -125,7 +125,7 @@ extern u64 get_cpu_idle_time_us(int cpu, u64 *last_update_time);
extern u64 get_cpu_iowait_time_us(int cpu, u64 *last_update_time);
#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_enter(void) { }
static inline void tick_nohz_idle_exit(void) { }
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] nohz: Align types to bool for tick_nohz_tick_stopped_cpu()
2018-04-11 11:01 [PATCH 1/2] nohz: Align types to bool for tick_nohz_tick_stopped() Ulf Hansson
@ 2018-04-11 11:01 ` Ulf Hansson
0 siblings, 0 replies; 3+ messages in thread
From: Ulf Hansson @ 2018-04-11 11:01 UTC (permalink / raw)
To: Frederic Weisbecker, Ingo Molnar, Thomas Gleixner
Cc: Rafael J . Wysocki, Ulf Hansson, linux-pm, linux-kernel
The intent was likely to also make the inline version a bool, so let's
change this.
Fixes: 22ab8bc02a5f ("nohz: Allow to check if remote CPU tick is stopped")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
---
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 f9070b9..cb52c38 100644
--- a/include/linux/tick.h
+++ b/include/linux/tick.h
@@ -126,7 +126,7 @@ extern u64 get_cpu_iowait_time_us(int cpu, u64 *last_update_time);
#else /* !CONFIG_NO_HZ_COMMON */
#define tick_nohz_enabled (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 bool tick_nohz_tick_stopped_cpu(int cpu) { return false; }
static inline void tick_nohz_idle_enter(void) { }
static inline void tick_nohz_idle_exit(void) { }
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] nohz: Align types to bool for tick_nohz_tick_stopped_cpu()
2018-04-12 7:09 [PATCH 1/2] nohz: Align types to bool for tick_nohz_tick_stopped() Ulf Hansson
@ 2018-04-12 7:09 ` Ulf Hansson
0 siblings, 0 replies; 3+ messages in thread
From: Ulf Hansson @ 2018-04-12 7:09 UTC (permalink / raw)
To: Frederic Weisbecker, Ingo Molnar, Thomas Gleixner
Cc: Rafael J . Wysocki, Ulf Hansson, linux-pm, linux-kernel
The intent was likely to also make the inline version a bool, so let's
change this.
Fixes: 22ab8bc02a5f ("nohz: Allow to check if remote CPU tick is stopped")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.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 4132eba..389aa25 100644
--- a/include/linux/tick.h
+++ b/include/linux/tick.h
@@ -138,7 +138,7 @@ static inline void tick_nohz_idle_stop_tick_protected(void)
#else /* !CONFIG_NO_HZ_COMMON */
#define tick_nohz_enabled (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 bool tick_nohz_tick_stopped_cpu(int cpu) { return false; }
static inline void tick_nohz_idle_stop_tick(void) { }
static inline void tick_nohz_idle_retain_tick(void) { }
static inline void tick_nohz_idle_restart_tick(void) { }
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-12 7:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-11 11:01 [PATCH 1/2] nohz: Align types to bool for tick_nohz_tick_stopped() Ulf Hansson
2018-04-11 11:01 ` [PATCH 2/2] nohz: Align types to bool for tick_nohz_tick_stopped_cpu() Ulf Hansson
2018-04-12 7:09 [PATCH 1/2] nohz: Align types to bool for tick_nohz_tick_stopped() Ulf Hansson
2018-04-12 7:09 ` [PATCH 2/2] nohz: Align types to bool for tick_nohz_tick_stopped_cpu() Ulf Hansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).