From patchwork Tue Sep 30 03:49:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 38112 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1E11A202DB for ; Tue, 30 Sep 2014 03:50:13 +0000 (UTC) Received: by mail-wg0-f69.google.com with SMTP id a1sf1012226wgh.4 for ; Mon, 29 Sep 2014 20:50:12 -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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=hZnjY8ThsfsKwwKL+3PWLBABs/AD5KHaTCP7YRABbeA=; b=b9RVOhmS73yH55CR7b0iaTalFmlhA/YNCNOBBYX8MgIrI7XONWfw/jEh+O7X+cneC3 +HtnBWyHpsL1RjRz9WuzC5mDpeCHhu3zt2POFkro/azoqyezQ3K/ojBA9sWcFjGFkVTj 3XkCNA59ngNJecCL37ydbjxZZuOxzLpBz1p2C3cXLia7CT7UaHJvDyySRi1bRQGUoepL IvZXRuuzP+tHuckbVMsKRShqEos3xw1hq0pGUys7pPxy1bmEYdHoqtINjQDuhqgWiRdO fP57f6nNggT0x7LE7JZTzkCkBdv6ZAf1v3nTRjX1/2ygZ74mPtiQ0UjVUtU7MLToodp5 3D3w== X-Gm-Message-State: ALoCoQndcjzO5t6QPsuVQ+hgU/f7FZUfzYIqw+8F+8KEQgbqE2fBhuDB0zfaw1KQhC8hMLLl7spr X-Received: by 10.152.4.4 with SMTP id g4mr6469311lag.2.1412049011955; Mon, 29 Sep 2014 20:50:11 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.169 with SMTP id s9ls584099laa.47.gmail; Mon, 29 Sep 2014 20:50:11 -0700 (PDT) X-Received: by 10.152.2.41 with SMTP id 9mr43741804lar.79.1412049011671; Mon, 29 Sep 2014 20:50:11 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com [209.85.215.46]) by mx.google.com with ESMTPS id x7si11404819lad.99.2014.09.29.20.50.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Sep 2014 20:50:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by mail-la0-f46.google.com with SMTP id gi9so9046705lab.33 for ; Mon, 29 Sep 2014 20:50:11 -0700 (PDT) X-Received: by 10.112.130.226 with SMTP id oh2mr7220794lbb.100.1412049011351; Mon, 29 Sep 2014 20:50:11 -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.130.169 with SMTP id of9csp279732lbb; Mon, 29 Sep 2014 20:50:10 -0700 (PDT) X-Received: by 10.70.101.138 with SMTP id fg10mr32581348pdb.1.1412049009797; Mon, 29 Sep 2014 20:50:09 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cs3si25413646pbc.252.2014.09.29.20.50.08 for ; Mon, 29 Sep 2014 20:50:09 -0700 (PDT) Received-SPF: none (google.com: linux-pm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754199AbaI3DuH (ORCPT + 15 others); Mon, 29 Sep 2014 23:50:07 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:63090 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751742AbaI3DuG (ORCPT ); Mon, 29 Sep 2014 23:50:06 -0400 Received: by mail-pa0-f43.google.com with SMTP id hz1so5615420pad.16 for ; Mon, 29 Sep 2014 20:50:06 -0700 (PDT) X-Received: by 10.70.96.161 with SMTP id dt1mr80380012pdb.115.1412049006317; Mon, 29 Sep 2014 20:50:06 -0700 (PDT) Received: from localhost ([122.167.74.155]) by mx.google.com with ESMTPSA id nd6sm13723107pbc.28.2014.09.29.20.50.04 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 29 Sep 2014 20:50:05 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , yuantian.tang@freescale.com Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar Subject: [PATCH resend] cpufreq: ppc-corenet: remove duplicate update of cpu_data Date: Tue, 30 Sep 2014 09:19:57 +0530 Message-Id: <5714b9e8a37bd5aea5f77676b75d9e7773e0f0e2.1412048958.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.0.3.693.g996b0fd 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.215.46 as permitted sender) smtp.mail=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: , 'cpu_data' is updated for policy->cpu first and then for all CPUs in policy->cpus. policy->cpus is guaranteed to contain policy->cpu as well and so the first write to 'cpu_data' for policy->cpu is redundant. Remove it. Acked-by: Tang Yuantian Signed-off-by: Viresh Kumar --- drivers/cpufreq/ppc-corenet-cpufreq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/cpufreq/ppc-corenet-cpufreq.c b/drivers/cpufreq/ppc-corenet-cpufreq.c index 3607070..bee5df7 100644 --- a/drivers/cpufreq/ppc-corenet-cpufreq.c +++ b/drivers/cpufreq/ppc-corenet-cpufreq.c @@ -199,7 +199,6 @@ static int corenet_cpufreq_cpu_init(struct cpufreq_policy *policy) } data->table = table; - per_cpu(cpu_data, cpu) = data; /* update ->cpus if we have cluster, no harm if not */ cpumask_copy(policy->cpus, per_cpu(cpu_mask, cpu));