From a8ccb3324c097b9736d1630c228ba2c1bf998121 Mon Sep 17 00:00:00 2001 From: Eduard Toloza Date: Sun, 10 Feb 2019 21:22:11 -0500 Subject: [PATCH] Add disable-turbo-boost.service --- system-units/disable-turbo-boost.service | 10 ++++++++++ .../rnetworking.service | 0 2 files changed, 10 insertions(+) create mode 100644 system-units/disable-turbo-boost.service rename rnetworking.service => system-units/rnetworking.service (100%) diff --git a/system-units/disable-turbo-boost.service b/system-units/disable-turbo-boost.service new file mode 100644 index 0000000..b09e888 --- /dev/null +++ b/system-units/disable-turbo-boost.service @@ -0,0 +1,10 @@ +[Unit] +Description=Disable Turbo Boost on Intel CPU + +[Service] +ExecStart=/bin/sh -c "/usr/bin/echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo" +ExecStop=/bin/sh -c "/usr/bin/echo 0 > /sys/devices/system/cpu/intel_pstate/no_turbo" +RemainAfterExit=yes + +[Install] +WantedBy=sysinit.target diff --git a/rnetworking.service b/system-units/rnetworking.service similarity index 100% rename from rnetworking.service rename to system-units/rnetworking.service