diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 7f1dd56af863..9fe3774a0fd3 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -4244,6 +4244,11 @@ static struct { | |||
4244 | .load_balancer = ATOMIC_INIT(-1), | 4244 | .load_balancer = ATOMIC_INIT(-1), |
4245 | }; | 4245 | }; |
4246 | 4246 | ||
4247 | int get_nohz_load_balancer(void) | ||
4248 | { | ||
4249 | return atomic_read(&nohz.load_balancer); | ||
4250 | } | ||
4251 | |||
4247 | /* | 4252 | /* |
4248 | * This routine will try to nominate the ilb (idle load balancing) | 4253 | * This routine will try to nominate the ilb (idle load balancing) |
4249 | * owner among the cpus whose ticks are stopped. ilb owner will do the idle | 4254 | * owner among the cpus whose ticks are stopped. ilb owner will do the idle |