Skip to content

Commit

Permalink
cpu-boost: Don't Bind to LITTLE cpus
Browse files Browse the repository at this point in the history
This partially reverts c8af0e5
  • Loading branch information
mylove90 committed Jan 25, 2024
1 parent a3ba4e3 commit e287485
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/cpufreq/cpu-boost.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,16 +416,9 @@ static struct input_handler cpuboost_input_handler = {

static int cpu_boost_init(void)
{
int cpu, ret, i;
int cpu, ret;
struct cpu_sync *s;
struct sched_param param = { .sched_priority = 2 };
cpumask_t sys_bg_mask;

/* Hardcode the cpumask to bind the kthread to it */
cpumask_clear(&sys_bg_mask);
for (i = 0; i <= 3; i++) {
cpumask_set_cpu(i, &sys_bg_mask);
}

kthread_init_worker(&cpu_boost_worker);
cpu_boost_worker_thread = kthread_create(kthread_worker_fn,
Expand All @@ -451,10 +444,6 @@ static int cpu_boost_init(void)
if (ret)
pr_err("powerkey_cpu-boost: Failed to set SCHED_FIFO!\n");

/* Now bind it to the cpumask */
kthread_bind_mask(cpu_boost_worker_thread, &sys_bg_mask);
kthread_bind_mask(powerkey_cpu_boost_worker_thread, &sys_bg_mask);

/* Wake it up! */
wake_up_process(cpu_boost_worker_thread);
wake_up_process(powerkey_cpu_boost_worker_thread);
Expand Down

0 comments on commit e287485

Please sign in to comment.