Skip to content

Commit a2bee06

Browse files
author
Peter Zijlstra
committed
sched,powerclamp: Convert to sched_set_fifo()
Because SCHED_FIFO is a broken scheduler model (see previous patches) take away the priority field, the kernel can't possibly make an informed decision. Effectively no change. Cc: [email protected] Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Ingo Molnar <[email protected]>
1 parent 9309de0 commit a2bee06

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/thermal/intel/intel_powerclamp.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ static unsigned int control_cpu; /* The cpu assigned to collect stat and update
7070
*/
7171
static bool clamping;
7272

73-
static const struct sched_param sparam = {
74-
.sched_priority = MAX_USER_RT_PRIO / 2,
75-
};
7673
struct powerclamp_worker_data {
7774
struct kthread_worker *worker;
7875
struct kthread_work balancing_work;
@@ -488,7 +485,7 @@ static void start_power_clamp_worker(unsigned long cpu)
488485
w_data->cpu = cpu;
489486
w_data->clamping = true;
490487
set_bit(cpu, cpu_clamping_mask);
491-
sched_setscheduler(worker->task, SCHED_FIFO, &sparam);
488+
sched_set_fifo(worker->task);
492489
kthread_init_work(&w_data->balancing_work, clamp_balancing_func);
493490
kthread_init_delayed_work(&w_data->idle_injection_work,
494491
clamp_idle_injection_func);

0 commit comments

Comments
 (0)