aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <[email protected]>2022-04-27 09:08:53 +0300
committerRafael J. Wysocki <[email protected]>2022-04-27 20:36:47 +0200
commit7eac3bd38d18cd3317756649921b8264ddfee692 (patch)
tree07007493d1fad2dff1b31fcee21cca8859afffd9 /lib/mpi/mpi-sub-ui.c
parent39c184a6a9a7a99950b321d55fe713175cf1d404 (diff)
intel_idle: Fix SPR C6 optimization
The Sapphire Rapids (SPR) C6 optimization was added to the end of the 'spr_idle_state_table_update()' function. However, the function has a 'return' which may happen before the optimization has a chance to run. And this may prevent the optimization from happening. This is an unlikely scenario, but possible if user boots with, say, the 'intel_idle.preferred_cstates=6' kernel boot option. This patch fixes the issue by eliminating the problematic 'return' statement. Fixes: 3a9cf77b60dc ("intel_idle: add core C6 optimization for SPR") Suggested-by: Jan Beulich <[email protected]> Reported-by: Jan Beulich <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]> [ rjw: Minor changelog edits ] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions