On Wed, 2009-10-28 at 15:07 +0530, Poornima Nayak wrote: > Patch to remove hard coded cpu governers > > Signed-off-by: poornima nayak <[email protected]>
Thanks. Applied. Regards-- Subrata > > diff -uprN ltp/testcases/kernel/power_management/pwkm_load_unload.sh > ltp_fixed/testcases/kernel/power_management/pwkm_load_unload.sh > --- ltp/testcases/kernel/power_management/pwkm_load_unload.sh 2009-03-25 > 02:19:22.000000000 -0400 > +++ ltp_fixed/testcases/kernel/power_management/pwkm_load_unload.sh > 2009-10-28 00:54:39.000000000 -0400 > @@ -3,7 +3,7 @@ > #Loading modules > RC=0 > loaded_governor=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor` > -for module in cpufreq_conservative cpufreq_powersave cpufreq_userspace > +for module in `modprobe -l | grep cpufreq_ | cut -f8 -d"/" | cut -f1 -d"."` > do > #echo -n "Loading $module ... " > if [ $module != "cpufreq_$loaded_governor" ]; > @@ -15,7 +15,7 @@ do > fi > fi > done > -for module in cpufreq_conservative cpufreq_powersave cpufreq_userspace > +for module in `modprobe -l | grep cpufreq_ | cut -f8 -d"/" | cut -f1 -d"."` > do > #echo -n "Unloading $module ... " > if [ $module != "cpufreq_$loaded_governor" ]; > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Ltp-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
