mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-05 23:33:11 +01:00
16 lines
477 B
Bash
Executable file
16 lines
477 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ]
|
|
then
|
|
for CPU in $(ls /sys/devices/system/cpu/|grep -E "cpu[0-9]+"); do
|
|
echo performance > /sys/devices/system/cpu/${CPU}/cpufreq/scaling_governor
|
|
done
|
|
fi
|
|
|
|
if [ -e /sys/class/scsi_host/host0/link_power_management_policy ]
|
|
then
|
|
for controller in $(ls /sys/class/scsi_host/|grep -E "host[0-9]+"); do
|
|
echo max_performance > /sys/class/scsi_host/${controller}/link_power_management_policy
|
|
done
|
|
fi
|
|
|