summaryrefslogtreecommitdiff
path: root/src/conf_mode/system_option.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-13 12:48:39 +0100
committerGitHub <noreply@github.com>2024-03-13 12:48:39 +0100
commit729d6785686284a61504dbfb8217888a485510dd (patch)
tree2844ad85d2ace215f7137ae5cb0b737285a3f6db /src/conf_mode/system_option.py
parentc8528d080786a4be9436fa71c9ec969b9c3719fd (diff)
parentfd2a16c66b5b521ff071835909b770acc0d0981e (diff)
downloadvyos-1x-729d6785686284a61504dbfb8217888a485510dd.tar.gz
vyos-1x-729d6785686284a61504dbfb8217888a485510dd.zip
Merge pull request #3128 from vyos/mergify/bp/sagitta/pr-3093
T2447: add configurable kernel boot option 'disable-power-saving' (backport #3093)
Diffstat (limited to 'src/conf_mode/system_option.py')
-rwxr-xr-xsrc/conf_mode/system_option.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/system_option.py b/src/conf_mode/system_option.py
index 3b5b67437..7ed451e16 100755
--- a/src/conf_mode/system_option.py
+++ b/src/conf_mode/system_option.py
@@ -92,6 +92,8 @@ def generate(options):
if 'kernel' in options:
if 'disable_mitigations' in options['kernel']:
cmdline_options.append('mitigations=off')
+ if 'disable_power_saving' in options['kernel']:
+ cmdline_options.append('intel_idle.max_cstate=0 processor.max_cstate=1')
grub_util.update_kernel_cmdline_options(' '.join(cmdline_options))
return None