From patchwork Sun Oct 11 17:21:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 54740 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 713512304F for ; Sun, 11 Oct 2015 17:21:34 +0000 (UTC) Received: by wijq8 with SMTP id q8sf24744373wij.1 for ; Sun, 11 Oct 2015 10:21:33 -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=p2cG7Ei6BZdLgf8nL/xA09tBzHxWueVzqp0JAq2jeH8=; b=IpPNbB65jg/aTPW5NxzTHIIriYa1LUDsb8S2w0CU3A3hZIZWU0Ci7CVdVJCiL7QibY AKUDVqaVLbzTal26if0n3Hrk5OKVnouWYYGakSt3tjeqGOkGkueSEEv6oWXaxDSpvjw/ WwlWq6H3Fi1ejv6ZW/jfUusdr2bHjfMB39cwZlksC5Mvyo4sIGTqzhJWNdIIourgUmSd 7ObeKgnXlqP7cw5V0z3TSG24a+Jc2EM+A4dyxRH2V/D9an/iRGiO7TCU1eG8i1FoNFOQ Y1MPYamahULx1cGfhjlyByzYIkTK56T9a7//65KiA55z/exQh8McP2OUs0EAlmec3km3 0DRg== X-Gm-Message-State: ALoCoQldv1BaVkMASJTGYh37AE+3RLWD3jAl3ByVou9VY52Y40D0uv6IOM7mfcPzw0dKxi9f/RYY X-Received: by 10.180.210.71 with SMTP id ms7mr1936817wic.4.1444584093755; Sun, 11 Oct 2015 10:21:33 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.150.209 with SMTP id y200ls407376lfd.17.gmail; Sun, 11 Oct 2015 10:21:33 -0700 (PDT) X-Received: by 10.25.143.72 with SMTP id r69mr7020432lfd.65.1444584093429; Sun, 11 Oct 2015 10:21:33 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id m82si8399450lfg.118.2015.10.11.10.21.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Oct 2015 10:21:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by lbwr8 with SMTP id r8so121948837lbw.2 for ; Sun, 11 Oct 2015 10:21:33 -0700 (PDT) X-Received: by 10.112.129.202 with SMTP id ny10mr10598192lbb.112.1444584093236; Sun, 11 Oct 2015 10:21:33 -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 w3csp1143938lbq; Sun, 11 Oct 2015 10:21:32 -0700 (PDT) X-Received: by 10.68.111.3 with SMTP id ie3mr29632640pbb.63.1444584092194; Sun, 11 Oct 2015 10:21:32 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ms6si19578215pbb.247.2015.10.11.10.21.31; Sun, 11 Oct 2015 10:21:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 S1752129AbbJKRV3 (ORCPT + 30 others); Sun, 11 Oct 2015 13:21:29 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:35062 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751966AbbJKRV2 (ORCPT ); Sun, 11 Oct 2015 13:21:28 -0400 Received: by pabve7 with SMTP id ve7so74361224pab.2 for ; Sun, 11 Oct 2015 10:21:28 -0700 (PDT) X-Received: by 10.66.141.111 with SMTP id rn15mr29360966pab.70.1444584087954; Sun, 11 Oct 2015 10:21:27 -0700 (PDT) Received: from localhost ([120.59.64.42]) by smtp.gmail.com with ESMTPSA id fk8sm13742008pab.33.2015.10.11.10.21.26 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 11 Oct 2015 10:21:27 -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 1/5] cpufreq: Use cpumask_copy instead of cpumask_or to copy a mask Date: Sun, 11 Oct 2015 22:51:10 +0530 Message-Id: X-Mailer: git-send-email 2.4.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@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.174 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: , 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 25c4c15103a0..b32521432db4 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -1221,7 +1221,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); }