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
56 local rfile=$(ls -l $1/$file | awk '$1 ~ /^.*r.*/ { print $NF; }')
58 if [ ! -z $rfile ]; then
78 printf "%s\n\n" "------------------------------------------------"
92 if [ -f $1/$file ]; then
94 local rwfile=$(ls -l $1/$file | awk '$1 ~ /^.*rw.*/ { print $NF; }')
96 if [ ! -z $rwfile ]; then
121 printf "%s\n\n" "------------------------------------------------"
159 # Set all frequencies one-by-one
177 printf "\n%s\n\n" "------------------------------------------------"
188 ktap_exit_fail_msg "No cpu is managed by cpufreq core, exiting\n"
193 # Detect & print which CPUs are not managed by cpufreq
217 if [ ! -d $SYSFS/power/ -o ! -f $SYSFS/power/state ]; then
218 printf "$SYSFS/power/state not available\n"
231 if [ -n $filename ]; then
232 present=$(cat $SYSFS/power/state | grep $filename)
234 if [ -z "$present" ]; then
235 printf "Tried to $1 but $filename isn't present in $SYSFS/power/state\n"
243 if ! command -v rtcwake &> /dev/null; then
248 rtcwake -m $filename -s 15
250 if [ $? -ne 0 ]; then
255 echo $filename > $SYSFS/power/state