aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorByungchul Park <byungchul.park@lge.com>2015-11-09 19:36:02 -0500
committerIngo Molnar <mingo@kernel.org>2015-11-23 03:37:53 -0500
commit525705d15e63b7455977408e4601e76e6bc41524 (patch)
tree9e201e3afd08f1874f79c6c00b227fc360e7844a /include/linux/sched.h
parent59543275488d18d878cd2ab2b1072efc1e9ac1c4 (diff)
sched/fair: Consider missed ticks in NOHZ_FULL in update_cpu_load_nohz()
Usually the tick can be stopped for an idle CPU in NOHZ. However in NOHZ_FULL mode, a non-idle CPU's tick can also be stopped. However, update_cpu_load_nohz() does not consider the case a non-idle CPU's tick has been stopped at all. This patch makes the update_cpu_load_nohz() know if the calling path comes from NOHZ_FULL or idle NOHZ. Signed-off-by: Byungchul Park <byungchul.park@lge.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1447115762-19734-3-git-send-email-byungchul.park@lge.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index edad7a43edea..f425aac63317 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -177,9 +177,9 @@ extern void get_iowait_load(unsigned long *nr_waiters, unsigned long *load);
177extern void calc_global_load(unsigned long ticks); 177extern void calc_global_load(unsigned long ticks);
178 178
179#if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ_COMMON) 179#if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ_COMMON)
180extern void update_cpu_load_nohz(void); 180extern void update_cpu_load_nohz(int active);
181#else 181#else
182static inline void update_cpu_load_nohz(void) { } 182static inline void update_cpu_load_nohz(int active) { }
183#endif 183#endif
184 184
185extern unsigned long get_parent_ip(unsigned long addr); 185extern unsigned long get_parent_ip(unsigned long addr);