Lines Matching +full:power +full:- +full:managed
2 # SPDX-License-Identifier: GPL-2.0
17 if [ ! -d $CPUROOT/$1/cpufreq ]; then
24 if [ -d $CPUROOT/$1/cpufreq ]; then
31 policies=$(ls $CPUFREQROOT| grep "policy[0-9].*")
39 policies=$(ls $CPUFREQROOT| grep "policy[0-9].*")
53 if [ -f $1/$file ]; then
71 printf "%s\n\n" "------------------------------------------------"
85 if [ -f $1/$file ]; then
87 local wfile=$(ls -l $1/$file | awk '$1 ~ /^.*w.*/ { print $NF; }')
89 if [ ! -z $wfile ]; then
114 printf "%s\n\n" "------------------------------------------------"
152 # Set all frequencies one-by-one
170 printf "\n%s\n\n" "------------------------------------------------"
181 ktap_exit_fail_msg "No cpu is managed by cpufreq core, exiting\n"
186 # Detect & print which CPUs are not managed by cpufreq
210 if [ ! -d $SYSFS/power/ -o ! -f $SYSFS/power/state ]; then
211 printf "$SYSFS/power/state not available\n"
224 if [ -n $filename ]; then
225 present=$(cat $SYSFS/power/state | grep $filename)
227 if [ -z "$present" ]; then
228 printf "Tried to $1 but $filename isn't present in $SYSFS/power/state\n"
236 if ! command -v rtcwake &> /dev/null; then
241 rtcwake -m $filename -s 15
243 if [ $? -ne 0 ]; then
249 echo $filename > $SYSFS/power/state