History

sched/fair: Remove unused return of _nohz_idle_balance

The return of _nohz_idle_balance() is not used anymore so we can remove it

Vincent Guittot committed 5 years ago

Commit ab2dde51 parent 08265301 file · +1 −9Browse files

Unified · Split

kernel/sched/fair.c+1−9
@@ -10354,10 +10354,8 @@ out: · 10353 unmodified lines
1035410354 * Internal function that runs load balance for all idle cpus. The load balance
1035510355 * can be a simple update of blocked load or a complete load balance with
1035610356 * tasks movement depending of flags.
10357− * The function returns false if the loop has stopped before running
10358− * through all idle CPUs.
1035910357 */
10360−static bool _nohz_idle_balance(struct rq *this_rq, unsigned int flags,
10358+static void _nohz_idle_balance(struct rq *this_rq, unsigned int flags,
1036110359 enum cpu_idle_type idle)
1036210360 {
1036310361 /* Earliest time when we have to do rebalance again */
@@ -10367,7 +10365,6 @@ static bool _nohz_idle_balance(struct rq *this_rq, unsigned int flags, · 3 unmodified lines
1036710365 int update_next_balance = 0;
1036810366 int this_cpu = this_rq->cpu;
1036910367 int balance_cpu;
10370− int ret = false;
1037110368 struct rq *rq;
1037210369
1037310370 SCHED_WARN_ON((flags & NOHZ_KICK_MASK) == NOHZ_BALANCE_KICK);
@@ -10447,15 +10444,10 @@ static bool _nohz_idle_balance(struct rq *this_rq, unsigned int flags, · 73 unmodified lines
1044710444 WRITE_ONCE(nohz.next_blocked,
1044810445 now + msecs_to_jiffies(LOAD_AVG_PERIOD));
1044910446
10450− /* The full idle balance loop has been done */
10451− ret = true;
10452−
1045310447 abort:
1045410448 /* There is still blocked load, enable periodic update */
1045510449 if (has_blocked_load)
1045610450 WRITE_ONCE(nohz.has_blocked, 1);
10457−
10458− return ret;
1045910451 }
1046010452
1046110453 /*

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t