mirror of https://gitee.com/openkylin/linux.git
nohz: Convert tick_nohz_tick_stopped() to bool
It makes this function more self-explanatory about what it does and how to use it. Reported-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Frederic Weisbecker <frederic@kernel.org> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra <peterz@infradead.org> Cc: Chris Metcalf <cmetcalf@mellanox.com> Cc: Christoph Lameter <cl@linux.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Luiz Capitulino <lcapitulino@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Rik van Riel <riel@redhat.com> Cc: Wanpeng Li <kernellwp@gmail.com> Link: http://lkml.kernel.org/r/1519186649-3242-3-git-send-email-frederic@kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
parent
77a021be38
commit
a364298359
|
@ -113,7 +113,7 @@ enum tick_dep_bits {
|
||||||
|
|
||||||
#ifdef CONFIG_NO_HZ_COMMON
|
#ifdef CONFIG_NO_HZ_COMMON
|
||||||
extern bool tick_nohz_enabled;
|
extern bool tick_nohz_enabled;
|
||||||
extern int tick_nohz_tick_stopped(void);
|
extern bool tick_nohz_tick_stopped(void);
|
||||||
extern void tick_nohz_idle_enter(void);
|
extern void tick_nohz_idle_enter(void);
|
||||||
extern void tick_nohz_idle_exit(void);
|
extern void tick_nohz_idle_exit(void);
|
||||||
extern void tick_nohz_irq_exit(void);
|
extern void tick_nohz_irq_exit(void);
|
||||||
|
|
|
@ -481,7 +481,7 @@ static int __init setup_tick_nohz(char *str)
|
||||||
|
|
||||||
__setup("nohz=", setup_tick_nohz);
|
__setup("nohz=", setup_tick_nohz);
|
||||||
|
|
||||||
int tick_nohz_tick_stopped(void)
|
bool tick_nohz_tick_stopped(void)
|
||||||
{
|
{
|
||||||
return __this_cpu_read(tick_cpu_sched.tick_stopped);
|
return __this_cpu_read(tick_cpu_sched.tick_stopped);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue