kernel: sched: fix build breakage when PELT enabled

Because mark_reserved use for WALT and it's called by load_balance,
it leads to build breakage when WALT disabled. Executing the function
only if CONFIG_SCHED_WALT enabled.

Bug: 144142283
Test: Build and boot to home
Change-Id: I5cc3e3ece6a28c6cdabbe6964f6a6032ff2ea809
Signed-off-by: Kyle Lin <kylelin@google.com>
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
fourteen
Kyle Lin 5 years ago committed by Jenna
parent da43cd3376
commit 0b118dfd3c
  1. 2
      kernel/sched/fair.c

@ -11233,7 +11233,9 @@ no_move:
busiest->active_balance = 1;
busiest->push_cpu = this_cpu;
active_balance = 1;
#ifdef CONFIG_SCHED_WALT
mark_reserved(this_cpu);
#endif
}
raw_spin_unlock_irqrestore(&busiest->lock, flags);

Loading…
Cancel
Save