From patchwork Mon Jan 27 17:04:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sanjay Singh Rawat X-Patchwork-Id: 23750 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DC4E020300 for ; Mon, 27 Jan 2014 17:04:45 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wp4sf23221904obc.9 for ; Mon, 27 Jan 2014 09:04:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=0N3r580Wny87pI7AXyfWAbCxbWOX7TdCmXjk8uI8vhI=; b=fXboIpmerOPwsS0wQ9fHv8dTs4m+iOLfg4tivOdb9cdKMv+p0piTNW4vOMoB3Lytnp t58yZvW4Nmg5PbhrjaU//z0mIEnu/9SDBCCPiNjLH3vLs+IBjkKg+XMuFoqP46okjb3S /I7g07mq66FoEpfwMrFVLQZRih906dP6V5QPwz256I1dw4u4q9Lu+xCIVjKbf33+upvH lCQ8k/5xXRDoFwwjm5FZZNXjeITWQJNgtPox4UYi64wmvb6fggzLbo+zCLnEn2819QCg Fnk10LoFqkv+7KbapOXyPlAwZZLnV3+LpH//A5uoVdgGV+mI5CsaQyS17EhZ+8/zLVxQ koMA== X-Gm-Message-State: ALoCoQkDV0r+7jxjKwl3dytp2wpCGu/Td7SFWP8Vld33mSSdWfP3U2Mqffii7gm8BJeau8KimrSd X-Received: by 10.42.250.196 with SMTP id mp4mr2225466icb.29.1390842284855; Mon, 27 Jan 2014 09:04:44 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.24.215 with SMTP id 81ls712322qgr.14.gmail; Mon, 27 Jan 2014 09:04:44 -0800 (PST) X-Received: by 10.58.86.230 with SMTP id s6mr16487074vez.16.1390842284708; Mon, 27 Jan 2014 09:04:44 -0800 (PST) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id go5si5279914vec.109.2014.01.27.09.04.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Jan 2014 09:04:44 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id ia6so3561985vcb.24 for ; Mon, 27 Jan 2014 09:04:44 -0800 (PST) X-Received: by 10.221.37.200 with SMTP id tf8mr73486vcb.54.1390842284277; Mon, 27 Jan 2014 09:04:44 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp144177vcz; Mon, 27 Jan 2014 09:04:43 -0800 (PST) X-Received: by 10.68.75.9 with SMTP id y9mr31300368pbv.61.1390842272760; Mon, 27 Jan 2014 09:04:32 -0800 (PST) Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com [209.85.192.182]) by mx.google.com with ESMTPS id bf5si9008837pad.262.2014.01.27.09.04.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Jan 2014 09:04:30 -0800 (PST) Received-SPF: neutral (google.com: 209.85.192.182 is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=209.85.192.182; Received: by mail-pd0-f182.google.com with SMTP id v10so5977663pde.27 for ; Mon, 27 Jan 2014 09:04:30 -0800 (PST) X-Received: by 10.68.8.136 with SMTP id r8mr31176950pba.36.1390842270000; Mon, 27 Jan 2014 09:04:30 -0800 (PST) Received: from localhost.localdomain ([223.239.137.15]) by mx.google.com with ESMTPSA id sq7sm33533333pbc.19.2014.01.27.09.04.26 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Jan 2014 09:04:29 -0800 (PST) From: Sanjay Singh Rawat To: private-pmwg@linaro.org Cc: Sanjay Singh Rawat Subject: [PATCH pmqa] cpuhotplug: skip hotplug check for cpu0 Date: Mon, 27 Jan 2014 22:34:15 +0530 Message-Id: <1390842255-20740-1-git-send-email-sanjay.rawat@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sanjay.rawat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , default cpu CPU0 is not hotpluggable, skip check for that Signed-off-by: Sanjay Singh Rawat --- include/functions.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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