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 0a94777 commit 68a8e45Copy full SHA for 68a8e45
drivers/acpi/acpi_pad.c
@@ -131,8 +131,10 @@ static void exit_round_robin(unsigned int tsk_index)
131
{
132
struct cpumask *pad_busy_cpus = to_cpumask(pad_busy_cpus_bits);
133
134
- cpumask_clear_cpu(tsk_in_cpu[tsk_index], pad_busy_cpus);
135
- tsk_in_cpu[tsk_index] = -1;
+ if (tsk_in_cpu[tsk_index] != -1) {
+ cpumask_clear_cpu(tsk_in_cpu[tsk_index], pad_busy_cpus);
136
+ tsk_in_cpu[tsk_index] = -1;
137
+ }
138
}
139
140
static unsigned int idle_pct = 5; /* percentage */
0 commit comments