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 5be63fc commit 0a2ed70Copy full SHA for 0a2ed70
drivers/acpi/acpi_pad.c
@@ -136,8 +136,10 @@ static void exit_round_robin(unsigned int tsk_index)
136
{
137
struct cpumask *pad_busy_cpus = to_cpumask(pad_busy_cpus_bits);
138
139
- cpumask_clear_cpu(tsk_in_cpu[tsk_index], pad_busy_cpus);
140
- tsk_in_cpu[tsk_index] = -1;
+ if (tsk_in_cpu[tsk_index] != -1) {
+ cpumask_clear_cpu(tsk_in_cpu[tsk_index], pad_busy_cpus);
141
+ tsk_in_cpu[tsk_index] = -1;
142
+ }
143
}
144
145
static unsigned int idle_pct = 5; /* percentage */
0 commit comments