We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 148fc01 commit fbf75caCopy full SHA for fbf75ca
drivers/acpi/acpi_pad.c
@@ -138,8 +138,10 @@ static void exit_round_robin(unsigned int tsk_index)
138
{
139
struct cpumask *pad_busy_cpus = to_cpumask(pad_busy_cpus_bits);
140
141
- cpumask_clear_cpu(tsk_in_cpu[tsk_index], pad_busy_cpus);
142
- tsk_in_cpu[tsk_index] = -1;
+ if (tsk_in_cpu[tsk_index] != -1) {
+ cpumask_clear_cpu(tsk_in_cpu[tsk_index], pad_busy_cpus);
143
+ tsk_in_cpu[tsk_index] = -1;
144
+ }
145
}
146
147
static unsigned int idle_pct = 5; /* percentage */
0 commit comments