[pmqa] cpuhotplug: skip hotplug check for cpu0

Message ID 1390842255-20740-1-git-send-email-sanjay.rawat@linaro.org
State New
Headers show

Commit Message

Sanjay Singh Rawat Jan. 27, 2014, 5:04 p.m.
default cpu CPU0 is not hotpluggable, skip check for that

Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
---
 include/functions.sh |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/include/functions.sh b/include/functions.sh
index 2a9cf21..e66fd34 100644
--- a/include/functions.sh
+++ b/include/functions.sh
@@ -62,7 +62,6 @@  for_each_cpu() {
     shift 1
 
     cpus=$(ls $CPU_PATH | grep "cpu[0-9].*")
-
     for cpu in $cpus; do
 	INC=0
 	CPU=/$cpu
@@ -286,6 +285,10 @@  check_cpuhotplug_files() {
     shift 1
 
     for i in $@; do
+        # skip check for cpu0
+        if [ `echo $dirpath | grep -c "cpu0"` -eq 1 ]; then
+            continue
+        fi
 	check_file $i $dirpath || return 1
     done