From patchwork Thu Aug 18 08:21:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 3500 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 2524423E52 for ; Thu, 18 Aug 2011 08:21:25 +0000 (UTC) Received: from mail-ey0-f170.google.com (mail-ey0-f170.google.com [209.85.215.170]) by fiordland.canonical.com (Postfix) with ESMTP id 13824A18788 for ; Thu, 18 Aug 2011 08:21:25 +0000 (UTC) Received: by eyd10 with SMTP id 10so1392939eyd.29 for ; Thu, 18 Aug 2011 01:21:24 -0700 (PDT) Received: by 10.213.3.155 with SMTP id 27mr1609191ebn.18.1313655684675; Thu, 18 Aug 2011 01:21:24 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.213.102.5 with SMTP id e5cs61168ebo; Thu, 18 Aug 2011 01:21:23 -0700 (PDT) Received: by 10.216.59.130 with SMTP id s2mr5015073wec.26.1313655682943; Thu, 18 Aug 2011 01:21:22 -0700 (PDT) Received: from mtagate7.uk.ibm.com (mtagate7.uk.ibm.com [194.196.100.167]) by mx.google.com with ESMTPS id l59si5019535wed.39.2011.08.18.01.21.22 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 18 Aug 2011 01:21:22 -0700 (PDT) Received-SPF: neutral (google.com: 194.196.100.167 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=194.196.100.167; Authentication-Results: mx.google.com; spf=neutral (google.com: 194.196.100.167 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: from d06nrmr1707.portsmouth.uk.ibm.com (d06nrmr1707.portsmouth.uk.ibm.com [9.149.39.225]) by mtagate7.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p7I8LMJ9006862 for ; Thu, 18 Aug 2011 08:21:22 GMT Received: from d06av06.portsmouth.uk.ibm.com (d06av06.portsmouth.uk.ibm.com [9.149.37.217]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p7I8LLZd2117864 for ; Thu, 18 Aug 2011 09:21:22 +0100 Received: from d06av06.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p7I8LL0v000885 for ; Thu, 18 Aug 2011 02:21:21 -0600 Received: from smtp.lab.toulouse-stg.fr.ibm.com (srv01.lab.toulouse-stg.fr.ibm.com [9.101.4.1]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p7I8LL0r000874; Thu, 18 Aug 2011 02:21:21 -0600 Received: from localhost.localdomain (sig-9-145-151-49.de.ibm.com [9.145.151.49]) by smtp.lab.toulouse-stg.fr.ibm.com (Postfix) with ESMTP id E4FA921101F; Thu, 18 Aug 2011 10:21:20 +0200 (CEST) From: Daniel Lezcano To: linaro-dev@lists.linaro.org Subject: [pm-qa] fix cpufreq_05 number ids Date: Thu, 18 Aug 2011 10:21:24 +0200 Message-Id: <1313655684-22832-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.4.1 Fix the numbering by manually setting for each cpu instead of using the function which reset the test id. Signed-off-by: Daniel Lezcano --- cpufreq/cpufreq_05.sh | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/cpufreq/cpufreq_05.sh b/cpufreq/cpufreq_05.sh index 6ba938c..a264e24 100755 --- a/cpufreq/cpufreq_05.sh +++ b/cpufreq/cpufreq_05.sh @@ -51,19 +51,26 @@ switch_userspace() { set_governor $cpu 'userspace' } -for_each_cpu switch_ondemand +for cpu in $(ls $CPU_PATH | grep "cpu[0-9].*"); do + switch_ondemand $cpu +done check "'ondemand' directory exists" "test -d $CPU_PATH/cpufreq/ondemand" -for_each_cpu switch_conservative +for cpu in $(ls $CPU_PATH | grep "cpu[0-9].*"); do + switch_conservative $cpu +done check "'conservative' directory exists" "test -d $CPU_PATH/cpufreq/conservative" -for_each_cpu switch_userspace +for cpu in $(ls $CPU_PATH | grep "cpu[0-9].*"); do + switch_userspace $cpu +done + check "'ondemand' directory is not there" "test ! -d $CPU_PATH/cpufreq/ondemand" check "'conservative' directory is not there" "test ! -d $CPU_PATH/cpufreq/conservative" # if more than one cpu, combine governors nrcpus=$(ls $CPU_PATH | grep "cpu[0-9].*" | wc -l) -if [ $nrcpus > 0 ]; then +if [ $nrcpus > 1 ]; then switch_ondemand cpu0 switch_conservative cpu1 check "'ondemand' directory exists" "test -d $CPU_PATH/cpufreq/ondemand"