All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [Patch 1/2]Fix failures messages on multi socket hyper threaded system
@ 2009-10-28  9:37 Poornima Nayak
  2009-10-28  9:37 ` [LTP] [Patch 2/2] to delete hardcoded cpu freq governers Poornima Nayak
  2009-10-29 18:31 ` [LTP] [Patch 1/2]Fix failures messages on multi socket hyper threaded system Subrata Modak
  0 siblings, 2 replies; 4+ messages in thread
From: Poornima Nayak @ 2009-10-28  9:37 UTC (permalink / raw)
  To: ltp-list

Patch to fix unwanted failure messages

Signed-off-by: poornima nayak <mpnayak@linux.vnet.ibm.com>

diff -uprN ltp/testcases/kernel/power_management/runpwtests.sh ltp_fixed/testcases/kernel/power_management/runpwtests.sh
--- ltp/testcases/kernel/power_management/runpwtests.sh	2009-10-13 06:03:40.000000000 -0400
+++ ltp_fixed/testcases/kernel/power_management/runpwtests.sh	2009-10-28 00:57:23.000000000 -0400
@@ -169,22 +169,24 @@ if [ $? -ne 0 ] ; then
 	tst_resm TCONF "Python is not installed, CPU Consoldation\
 test cannot run"
 else
-	get_sched_values sched_mc; max_sched_mc=$?
-    echo "max sched mc $max_sched_mc"
-	for sched_mc in `seq 0 $max_sched_mc`; do
-		: $(( TST_COUNT+=1))
-		sched_domain.py -c $sched_mc; RC=$?
-		analyze_sched_domain_result $sched_mc $RC 
-		if [ $hyper_threaded -eq $YES ]; then
-			get_sched_values sched_smt; max_sched_smt=$?
-			for sched_smt in `seq 0 $max_sched_smt`; do
-				# Testcase to validate sched_domain tree
-				: $(( TST_COUNT+=1))
-				sched_domain.py -c $sched_mc -t $sched_smt; RC=$?
-				analyze_sched_domain_result $sched_mc $RC $sched_smt ;
-			done
-		fi
-	done
+	if [ -f /sys/devices/system/cpu/sched_mc_power_savings ] ; then
+		get_sched_values sched_mc; max_sched_mc=$?
+    	echo "max sched mc $max_sched_mc"
+		for sched_mc in `seq 0 $max_sched_mc`; do
+			: $(( TST_COUNT+=1))
+			sched_domain.py -c $sched_mc; RC=$?
+			analyze_sched_domain_result $sched_mc $RC 
+			if [ $hyper_threaded -eq $YES -a -f /sys/devices/system/cpu/sched_smt_power_savings ]; then
+				get_sched_values sched_smt; max_sched_smt=$?
+				for sched_smt in `seq 0 $max_sched_smt`; do
+					# Testcase to validate sched_domain tree
+					: $(( TST_COUNT+=1))
+					sched_domain.py -c $sched_mc -t $sched_smt; RC=$?
+					analyze_sched_domain_result $sched_mc $RC $sched_smt ;
+				done
+			fi
+		done
+	fi
 fi
 
 : $(( TST_COUNT+=1))

------------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-29 18:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [LTP] [Patch 2/2] to delete hardcoded cpu freq governers Poornima Nayak
2009-10-29 18:31   ` Subrata Modak
2009-10-29 18:31 ` [LTP] [Patch 1/2]Fix failures messages on multi socket hyper threaded system Subrata Modak

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.