From patchwork Fri Jun 23 09:25:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 106249 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp112192qgd; Fri, 23 Jun 2017 02:25:46 -0700 (PDT) X-Received: by 10.84.143.100 with SMTP id 91mr8002174ply.186.1498209946522; Fri, 23 Jun 2017 02:25:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498209946; cv=none; d=google.com; s=arc-20160816; b=OIhbHi0wk5smmDj7aFWfW6LBH8g89Vt7s6gEB8ChAY4XzS6b+kpdmgZABbAN7pg7bn 7FTqBVpp2d14Haxi5xc79loDZoignCigCnhGDMpX4269NYxSkPQ2ez/ZXNYn4EewL/w3 25s7D9Jr6zZKJpk5LtwYYL/y3W20uZg40Oe4Xbb8JnYGpip9wfupgP88A9SpS1jI7RCH CeKRs2ytE02TI493nfdmIx5oaPPwIUii1JvKWc9/UNsTlhsQFtIjxCihCJY/0ltkqbqH O6IW5fG7fL9sJJcJWRaVO0oH1pH57cGz0PcOcCfDNWOzSc4ocijXpl0aecSrGrUO+neX KwZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=59i8DlrNUCQuB2Lu4XwaZTjkgSkNa/rp8M1nIfMjGE8=; b=DqhRB2wa7mhyQ1v7Srp5o4WD21H40BtBUzFe88rOg+9D7u24aC8YCP6TxADqszCz3G cXdU87wGO7U7ZdmMAHgYRkyPMVkrYRsottF6iyLnt1RS1VgbkRdBzHiSlyN2jJMMlAfQ 1XBSGo0NlEDj6U8SGwIv4f61al2/sRqNowVLLkXbMiMQh4/4F1hyzSfBTs5Dr/Opdu4B Jvw4FG8o4ruK3uYPVBdsPbklE0bHNnKe3p4ooz4/PT+ICxxPVoxqUPadglJI3vky1OBm NETiOD+q2I5gSzIewWar0uwC2PPeBLd20UDyUo7XvyeqKP8ANsyVCmVH4KgTUoufAoMo fUUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=YBvZLkXm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k33si3303439pld.481.2017.06.23.02.25.46; Fri, 23 Jun 2017 02:25:46 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.b=YBvZLkXm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754637AbdFWJZp (ORCPT + 25 others); Fri, 23 Jun 2017 05:25:45 -0400 Received: from mail-pg0-f47.google.com ([74.125.83.47]:35782 "EHLO mail-pg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753694AbdFWJZl (ORCPT ); Fri, 23 Jun 2017 05:25:41 -0400 Received: by mail-pg0-f47.google.com with SMTP id 132so19045255pgb.2 for ; Fri, 23 Jun 2017 02:25:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=59i8DlrNUCQuB2Lu4XwaZTjkgSkNa/rp8M1nIfMjGE8=; b=YBvZLkXmWW7wwAP+X8/gXdhodM4pwYLcALaELkelgP2AdN8j0TZFANvqjLAYy9BLNx P2fXK0PoC1ifggMqY2xf0OYAc6nvPNlI6u1hEzF4NxVpUUFaClFuZS/6uWIFAqDKAMmf dsuOhSenz1kj2TfEswMW8T7hB6GEp/a3K8gi8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=59i8DlrNUCQuB2Lu4XwaZTjkgSkNa/rp8M1nIfMjGE8=; b=YaujQoefT2lH/UU4v98XbxIK1dt8ghKYRkZmvrC8/+GqWiFweVFkRPCtW0BDyqM9SF OZmmJUU3vrLXueWxWuWNipfcsHeEgWFK4Je3G4xwD3Rx5eSaVEW4ycb7VhRWkZHQMWRU Xe6ivY+fecdUxUyDOUCJgZSmEPGVHriFSSs2N1hFQnVn3K0TkJes1poRaYUATiZYCryf rUvoA7ZpDsJrxM/kObTYPJL68WdpqvTVRZu5D0Xz0ltYSRsiZAQngUsfhWXhGOuAk7JD 65nV84lXWDbKrujzyqoEVZa+i5dY6RBgZSg3RLrWRfsE8endeGu/238xhj9fkT1o3cEK O3wQ== X-Gm-Message-State: AKS2vOxK18DlZN6xyGPKY1HHzlZ99BmI8rJrFUo6bRcLyC7mrKzmRKFU HOQdix6CrKIWwz7r X-Received: by 10.99.131.193 with SMTP id h184mr7271514pge.80.1498209941061; Fri, 23 Jun 2017 02:25:41 -0700 (PDT) Received: from localhost ([122.172.59.234]) by smtp.gmail.com with ESMTPSA id r69sm9055406pfg.28.2017.06.23.02.25.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jun 2017 02:25:40 -0700 (PDT) From: Viresh Kumar To: Juri Lelli , Greg Kroah-Hartman Cc: Viresh Kumar , linux-arm-kernel@lists.infradead.org, Catalin Marinas , linux@arm.linux.org.uk, Will Deacon , Vincent Guittot , arnd.bergmann@linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH V3 1/5] arch_topology: Don't break lines unnecessarily Date: Fri, 23 Jun 2017 14:55:30 +0530 Message-Id: X-Mailer: git-send-email 2.13.0.71.gd7076ec9c9cb In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need of line break at few places, avoid them. Signed-off-by: Viresh Kumar --- drivers/base/arch_topology.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) -- 2.13.0.71.gd7076ec9c9cb diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index d1c33a85059e..0ad79b5cd56d 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -41,8 +41,7 @@ static ssize_t cpu_capacity_show(struct device *dev, { struct cpu *cpu = container_of(dev, struct cpu, dev); - return sprintf(buf, "%lu\n", - topology_get_cpu_scale(NULL, cpu->dev.id)); + return sprintf(buf, "%lu\n", topology_get_cpu_scale(NULL, cpu->dev.id)); } static ssize_t cpu_capacity_store(struct device *dev, @@ -128,8 +127,7 @@ int __init topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu) if (cap_parsing_failed) return !ret; - ret = of_property_read_u32(cpu_node, - "capacity-dmips-mhz", + ret = of_property_read_u32(cpu_node, "capacity-dmips-mhz", &cpu_capacity); if (!ret) { if (!raw_capacity) { @@ -181,8 +179,7 @@ init_cpu_capacity_callback(struct notifier_block *nb, pr_debug("cpu_capacity: init cpu capacity for CPUs [%*pbl] (to_visit=%*pbl)\n", cpumask_pr_args(policy->related_cpus), cpumask_pr_args(cpus_to_visit)); - cpumask_andnot(cpus_to_visit, - cpus_to_visit, + cpumask_andnot(cpus_to_visit, cpus_to_visit, policy->related_cpus); for_each_cpu(cpu, policy->related_cpus) { raw_capacity[cpu] = topology_get_cpu_scale(NULL, cpu) *