From: Poornima Nayak <mpnayak@linux.vnet.ibm.com>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] [Patch 2/2] to delete hardcoded cpu freq governers
Date: Wed, 28 Oct 2009 15:07:57 +0530 [thread overview]
Message-ID: <20091028093757.19484.89637.sendpatchset@localhost.localdomain> (raw)
In-Reply-To: <20091028093749.19484.92103.sendpatchset@localhost.localdomain>
Patch to remove hard coded cpu governers
Signed-off-by: poornima nayak <mpnayak@linux.vnet.ibm.com>
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2009-10-28 9:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-28 9:37 [LTP] [Patch 1/2]Fix failures messages on multi socket hyper threaded system Poornima Nayak
2009-10-28 9:37 ` Poornima Nayak [this message]
2009-10-29 18:31 ` [LTP] [Patch 2/2] to delete hardcoded cpu freq governers Subrata Modak
2009-10-29 18:31 ` [LTP] [Patch 1/2]Fix failures messages on multi socket hyper threaded system Subrata Modak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091028093757.19484.89637.sendpatchset@localhost.localdomain \
--to=mpnayak@linux.vnet.ibm.com \
--cc=ltp-list@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.