From patchwork Thu May 16 09:28:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 16991 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f199.google.com (mail-gh0-f199.google.com [209.85.160.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3F4322391B for ; Thu, 16 May 2013 09:33:08 +0000 (UTC) Received: by mail-gh0-f199.google.com with SMTP id g14sf3223512ghb.10 for ; Thu, 16 May 2013 02:32:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:in-reply-to:references:x-gm-message-state :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-google-group-id:list-post:list-help :list-archive:list-unsubscribe; bh=VCNw6OpTli56lUYiTbktU+/f8+WTIXS0oqt9kD4XG1Y=; b=ChDwV7aJROiNeaBVXnQmt3PgQ0Hbe/tl8PBA0FpVD/vhEo5zCLomHSjEffooJlswz+ pKw//lcXREDTjo3nzgpnOrn04T5tYAeedAb4nlcz1ugYl4QEqw28cZ8AwZ0olaghzLMM ajHU/c6+8QHXSqcDZIhRieF/aWAYPk13AxRe6FLFi+jdt3jIFf5WdKxmSebWva+xIZHq w/mnBqdxspOiukVL/o8H6cbU4+wqGGV6Oc0+JRHfJEDO23tVgrvEAQK+v6Qt8mGZHXxO IORUreo3TqKljodyvxTthB27u/Rb0AaxyR7D9NEmn20kPgx7/hpPAb40jGnEMYGG1DZm LXyg== X-Received: by 10.224.59.205 with SMTP id m13mr25435873qah.7.1368696749391; Thu, 16 May 2013 02:32:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.121.137 with SMTP id lk9ls1196628qeb.68.gmail; Thu, 16 May 2013 02:32:29 -0700 (PDT) X-Received: by 10.58.231.229 with SMTP id tj5mr780739vec.15.1368696749232; Thu, 16 May 2013 02:32:29 -0700 (PDT) Received: from mail-vb0-x22b.google.com (mail-vb0-x22b.google.com [2607:f8b0:400c:c02::22b]) by mx.google.com with ESMTPS id r5si3520823vdw.7.2013.05.16.02.32.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 May 2013 02:32:29 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22b is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22b; Received: by mail-vb0-f43.google.com with SMTP id p14so1240456vbm.30 for ; Thu, 16 May 2013 02:32:29 -0700 (PDT) X-Received: by 10.52.20.210 with SMTP id p18mr22981749vde.42.1368696749057; Thu, 16 May 2013 02:32:29 -0700 (PDT) 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.126.138 with SMTP id c10csp56062vcs; Thu, 16 May 2013 02:32:28 -0700 (PDT) X-Received: by 10.69.3.65 with SMTP id bu1mr42199297pbd.107.1368696748097; Thu, 16 May 2013 02:32:28 -0700 (PDT) Received: from mail-da0-x230.google.com (mail-da0-x230.google.com [2607:f8b0:400e:c00::230]) by mx.google.com with ESMTPS id fn6si4403122pab.237.2013.05.16.02.32.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 May 2013 02:32:28 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c00::230 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=2607:f8b0:400e:c00::230; Received: by mail-da0-f48.google.com with SMTP id h32so1537813dak.7 for ; Thu, 16 May 2013 02:32:27 -0700 (PDT) X-Received: by 10.68.108.196 with SMTP id hm4mr42662875pbb.88.1368696747599; Thu, 16 May 2013 02:32:27 -0700 (PDT) Received: from localhost ([106.197.193.133]) by mx.google.com with ESMTPSA id ag4sm6138111pbc.20.2013.05.16.02.32.19 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 16 May 2013 02:32:27 -0700 (PDT) From: Viresh Kumar To: toddpoynor@google.com Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, robin.randhawa@arm.com, Steve.Bannister@arm.com, Liviu.Dudau@arm.com, charles.garcia-tobin@arm.com, arvind.chauhan@arm.com, android-kernel@googlegroups.com, viresh.kumar@linaro.org Subject: [PATCH 14/16] cpufreq: interactive: Remove unnecessary cpu_online() check Date: Thu, 16 May 2013 14:58:52 +0530 Message-Id: <82c927127d191af76f3d609db49dd73c7cc03eda.1368696171.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQkDEmOWkEOZH22sDAi+iOTqr/P+f2XITTBCdH8UuStn1ScP8pkpS0ivAlT7JSMPnHCPCzlM X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22b 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: , Cpufreq no longer calls governor callback for offlined cpus. i.e. All policy->cpus are guaranteed to be online. Hence we don't need explicit check to see if cpu is online or not. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq_interactive.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c index 4ed2fed..baa5638 100644 --- a/drivers/cpufreq/cpufreq_interactive.c +++ b/drivers/cpufreq/cpufreq_interactive.c @@ -992,9 +992,6 @@ static int cpufreq_governor_interactive(struct cpufreq_policy *policy, switch (event) { case CPUFREQ_GOV_START: - if (!cpu_online(policy->cpu)) - return -EINVAL; - mutex_lock(&gov_lock); freq_table =