From patchwork Thu Oct 15 16:05:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 55045 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by patches.linaro.org (Postfix) with ESMTPS id D683522FFA for ; Thu, 15 Oct 2015 16:05:48 +0000 (UTC) Received: by lbcao8 with SMTP id ao8sf12331524lbc.1 for ; Thu, 15 Oct 2015 09:05:47 -0700 (PDT) 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:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=Uby3oNlDTIpm9ILU3Fjsbr01AwyHqgDlQX0Nde+/f9c=; b=DofIChL4kKXIicSoZsKrE4zwFMgx0vhLEoCgvqihpvhRPUwvuOUwgP1xN7MdhrnaXQ 4RS53fq4lkY2EMSdwbvd5pIAmIZ1adqprQv1MY8FYpwUJ++V+aL/bGqzK6QLTOcLhwoq Zvzyvppu0o3kNOh3UQKX1oB6dfp2pSPMZ3Kk3tUF1NSWDz+nZ1zmbsF+03+m/bU4ci3Y D4mtFGtc6FDyBAGn24PRnY+C4b0lV4dwhQ4ouqiMzjbJDXZ7bSY6fNPob6RdhnT0jzvh xQXsccXmoA9olzr+AhNAnHc12VztYA2c1tVKD4Qygddb0sZH66KGaS7Md9L0DCnZmOeA vk9w== X-Gm-Message-State: ALoCoQmIozB7DeHxLrh0SYuk/ZrCN+PW2c6+uyoQBrWLr/I9UXtAXkhBUZan3C/qTIcDfb1A1aDq X-Received: by 10.112.63.165 with SMTP id h5mr2440366lbs.18.1444925147729; Thu, 15 Oct 2015 09:05:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.141.198 with SMTP id p189ls187974lfd.79.gmail; Thu, 15 Oct 2015 09:05:47 -0700 (PDT) X-Received: by 10.112.52.40 with SMTP id q8mr5087281lbo.100.1444925147596; Thu, 15 Oct 2015 09:05:47 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id l20si9590910lfi.62.2015.10.15.09.05.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Oct 2015 09:05:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbcao8 with SMTP id ao8so74415660lbc.3 for ; Thu, 15 Oct 2015 09:05:47 -0700 (PDT) X-Received: by 10.112.161.168 with SMTP id xt8mr4034841lbb.88.1444925146324; Thu, 15 Oct 2015 09:05:46 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp721939lbq; Thu, 15 Oct 2015 09:05:45 -0700 (PDT) X-Received: by 10.68.197.168 with SMTP id iv8mr10755260pbc.81.1444925145240; Thu, 15 Oct 2015 09:05:45 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id he4si22557518pbc.109.2015.10.15.09.05.44; Thu, 15 Oct 2015 09:05:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752588AbbJOQFn (ORCPT + 12 others); Thu, 15 Oct 2015 12:05:43 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:33796 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752403AbbJOQFn (ORCPT ); Thu, 15 Oct 2015 12:05:43 -0400 Received: by payp3 with SMTP id p3so43952560pay.1 for ; Thu, 15 Oct 2015 09:05:42 -0700 (PDT) X-Received: by 10.68.238.69 with SMTP id vi5mr10845713pbc.29.1444925142520; Thu, 15 Oct 2015 09:05:42 -0700 (PDT) Received: from localhost ([223.227.130.246]) by smtp.gmail.com with ESMTPSA id ou1sm16228235pbb.0.2015.10.15.09.05.40 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 15 Oct 2015 09:05:41 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, skannan@codeaurora.org, Viresh Kumar , linux-kernel@vger.kernel.org (open list) Subject: [PATCH V2 1/5] cpufreq: Use cpumask_copy instead of cpumask_or to copy a mask Date: Thu, 15 Oct 2015 21:35:21 +0530 Message-Id: <376fd4d59723a89b40a0f12def43722874c43be8.1444924623.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.4.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , ->related_cpus is empty at this point of time and copying ->cpus to it or orring ->related_cpus with ->cpus would result in the same value. But cpumask_copy makes it rather clear. Reviewed-by: Saravana Kannan Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 8701dc559850..16b9e811ff01 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -1214,7 +1214,7 @@ static int cpufreq_online(unsigned int cpu) if (new_policy) { /* related_cpus should at least include policy->cpus. */ - cpumask_or(policy->related_cpus, policy->related_cpus, policy->cpus); + cpumask_copy(policy->related_cpus, policy->cpus); /* Remember CPUs present at the policy creation time. */ cpumask_and(policy->real_cpus, policy->cpus, cpu_present_mask); }