Toshaan Bharvani
3 years ago
2 changed files with 16 additions and 0 deletions
@ -0,0 +1,3 @@ |
|||||||
|
# See 'cpupower help' and cpupower(1) for more info |
||||||
|
CPUPOWER_START_OPTS="frequency-set -g performance" |
||||||
|
CPUPOWER_STOP_OPTS="frequency-set -g ondemand" |
@ -0,0 +1,13 @@ |
|||||||
|
[Unit] |
||||||
|
Description=Configure CPU power related settings |
||||||
|
After=syslog.target |
||||||
|
|
||||||
|
[Service] |
||||||
|
Type=oneshot |
||||||
|
RemainAfterExit=yes |
||||||
|
EnvironmentFile=/etc/sysconfig/cpupower |
||||||
|
ExecStart=/usr/bin/cpupower $CPUPOWER_START_OPTS |
||||||
|
ExecStop=/usr/bin/cpupower $CPUPOWER_STOP_OPTS |
||||||
|
|
||||||
|
[Install] |
||||||
|
WantedBy=multi-user.target |
Loading…
Reference in new issue