Skip to content

Commit

Permalink
lpm-levels: Don't expose sleep_disabled
Browse files Browse the repository at this point in the history
* Don't allow userspace do anything with it

Signed-off-by: Carlos Ayrton Lopez Arroyo <[email protected]>
  • Loading branch information
libxzr authored and Official-Ayrton990 committed Jul 12, 2021
1 parent 9b39246 commit 2c7d5d9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/cpuidle/lpm-levels.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ static void cluster_prepare(struct lpm_cluster *cluster,
static bool print_parsed_dt;
module_param_named(print_parsed_dt, print_parsed_dt, bool, 0664);

static bool sleep_disabled;
module_param_named(sleep_disabled, sleep_disabled, bool, 0664);

/**
* msm_cpuidle_get_deep_idle_latency - Get deep idle latency value
*
Expand Down Expand Up @@ -596,9 +593,6 @@ static inline bool lpm_disallowed(s64 sleep_us, int cpu, struct lpm_cpu *pm_cpu)
if (cpu_isolated(cpu))
goto out;

if (sleep_disabled)
return true;

bias_time = sched_lpm_disallowed_time(cpu);
if (bias_time) {
pm_cpu->bias = bias_time;
Expand Down

0 comments on commit 2c7d5d9

Please sign in to comment.