Skip to content

Commit

Permalink
Merge branches 'pm-cpuidle' and 'pm-sleep'
Browse files Browse the repository at this point in the history
* pm-cpuidle:
  intel_idle: Fix max_cstate for processor models without C-state tables

* pm-sleep:
  PM: sleep: fix typo in kernel/power/process.c
  • Loading branch information
rafaeljw committed Oct 30, 2020
3 parents d1e7c29 + 4e0ba55 + 4d4ce80 commit dea47cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/idle/intel_idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ static void __init intel_idle_init_cstates_acpi(struct cpuidle_driver *drv)
struct acpi_processor_cx *cx;
struct cpuidle_state *state;

if (intel_idle_max_cstate_reached(cstate))
if (intel_idle_max_cstate_reached(cstate - 1))
break;

cx = &acpi_state_table.states[cstate];
Expand Down
2 changes: 1 addition & 1 deletion kernel/power/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ int freeze_processes(void)
BUG_ON(in_atomic());

/*
* Now that the whole userspace is frozen we need to disbale
* Now that the whole userspace is frozen we need to disable
* the OOM killer to disallow any further interference with
* killable tasks. There is no guarantee oom victims will
* ever reach a point they go away we have to wait with a timeout.
Expand Down

0 comments on commit dea47cf

Please sign in to comment.