File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -726,10 +726,12 @@ void set_cpu_present(unsigned int cpu, bool present)
726
726
727
727
void set_cpu_online (unsigned int cpu , bool online )
728
728
{
729
- if (online )
729
+ if (online ) {
730
730
cpumask_set_cpu (cpu , to_cpumask (cpu_online_bits ));
731
- else
731
+ cpumask_set_cpu (cpu , to_cpumask (cpu_active_bits ));
732
+ } else {
732
733
cpumask_clear_cpu (cpu , to_cpumask (cpu_online_bits ));
734
+ }
733
735
}
734
736
735
737
void set_cpu_active (unsigned int cpu , bool active )
Original file line number Diff line number Diff line change @@ -5076,7 +5076,6 @@ static int sched_cpu_active(struct notifier_block *nfb,
5076
5076
unsigned long action , void * hcpu )
5077
5077
{
5078
5078
switch (action & ~CPU_TASKS_FROZEN ) {
5079
- case CPU_STARTING :
5080
5079
case CPU_DOWN_FAILED :
5081
5080
set_cpu_active ((long )hcpu , true);
5082
5081
return NOTIFY_OK ;
You can’t perform that action at this time.
0 commit comments