From patchwork Wed Jun 21 04:46:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 106033 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp1744147qgd; Tue, 20 Jun 2017 21:47:19 -0700 (PDT) X-Received: by 10.99.2.135 with SMTP id 129mr34814878pgc.174.1498020439812; Tue, 20 Jun 2017 21:47:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498020439; cv=none; d=google.com; s=arc-20160816; b=ncmW+Is5FsoOLiuPUfcTBENQ4B3ihZzJpAOm6xd1jJFKZ+WJXsQIWqaMy/fZOz4oah 7+l/IPcRPJ18aTv83Cv2bO9jaQxaGL2WQ+q0DQWe9a2FY1csYpYPnIX83wdfL+2pqgg0 UeuhvX2leAbt1U8k+5nNhu9Y43H/M3DU4/2aXQJ5ccpPkZbo8o78fqEDCfAjFaywV1Xw 8rsi9AbNM9gM6cwDSNCWaIRsdAGsepuaP5TLaO9tBnG4wF4UQQdY5nsh4N9aRq59yS9W 1zu1wdtN+BtiRTyFkXDoLLq+rdbPc/chetGntmTD7bMUToFyhvTIY6BqO/1VmMktfyLv dqLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=1mnvdLFmPhcZ7f3+IuEQtnIIo/3snvQr6ckIoa56kW8=; b=dY4WUmwfxbY1atPyOQpPas4AdktQikHIDWCIh8SSPdD0/OlOj4/0jd6XMlziEK2yoe tonTKqeBKzqJzOWm5+tsyxMdF6CkwD3Md6Cfr44rCm4Suc0sWIkyeY1YgsqTJNkfkxGf 1qZxGCVVMckreMgqF8xl+wro3SlwiFgDFvuqfe7spNA+zdB82rWAwMqhfXC5E8Exe1s4 F/CMt/BkfHNGo3pyHSx9+B2+rlKAlqmUCg4V+p70rJ2ZqNNS1PBHjos5XdWJ6EPsJI55 1i5ZOsjPvrNLm62FIQDATrqMcAPAf8379VyyhBYfrg8gxJRc92AUh+e2BMZ6HXBLvm9/ gPoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=JmBTYR2v; 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 c19si12534085pgk.501.2017.06.20.21.47.19; Tue, 20 Jun 2017 21:47:19 -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=JmBTYR2v; 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 S1752601AbdFUEqy (ORCPT + 25 others); Wed, 21 Jun 2017 00:46:54 -0400 Received: from mail-pg0-f54.google.com ([74.125.83.54]:35704 "EHLO mail-pg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752265AbdFUEqx (ORCPT ); Wed, 21 Jun 2017 00:46:53 -0400 Received: by mail-pg0-f54.google.com with SMTP id 132so38637914pgb.2 for ; Tue, 20 Jun 2017 21:46:53 -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; bh=1mnvdLFmPhcZ7f3+IuEQtnIIo/3snvQr6ckIoa56kW8=; b=JmBTYR2vjJH9a2i2OVCY8ghWC2E7J2ZQihgvFTMuh/sBSGKi+zpYQ0tRbz6BpHU+0D R3MtaTORN97JCoLrB86Aon+WMF3velBS1XTQTK7pypyyOAGWYHH9WepsU+QChWylB4kh NVP6EDIZUKfIVLBwDQ5QUCg5Jk4Tckn25l2f4= 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; bh=1mnvdLFmPhcZ7f3+IuEQtnIIo/3snvQr6ckIoa56kW8=; b=gKg7Dh3QQ47qhq2J7ZuPlOSMk7obKLaLWR3HajY6vllI9b+42tX1o/WHbtEfn0Ni5q 8UOcUhw7Z/YgeONp9r6a+e9Jmso/drB3f0Y+hPnrYmvF3s8HC10SicTiiYRyBC2D/2lx prjyXVPLevBilTqsd17t3i3uUxEWtpKuhqHh9S38qlJ2L9qIweU7RVMbfRPi92QYpwHC cxGB7FlyAa5B2D0vQy4fHCiZvzEOTTPaKkP/BL5E6gHiXifZOAFpi8nCIgaD1COb6K3A tE/1b0ur9WZyxBK/lqRHtOylNorPSijW1W18bLA1f8PEKJ0klhOFO3NUGuUrOj1f2tfI ujkw== X-Gm-Message-State: AKS2vOyu5QfNVchwJ1u5mUpj4rAhZbDRf4qNUDizn40FudmeGsgFjqfG 0HT/amJViSzio8ro X-Received: by 10.99.64.199 with SMTP id n190mr35605426pga.281.1498020412939; Tue, 20 Jun 2017 21:46:52 -0700 (PDT) Received: from localhost ([122.172.59.234]) by smtp.gmail.com with ESMTPSA id z71sm31250603pfd.45.2017.06.20.21.46.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2017 21:46:52 -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 V2 0/5] arch_topology: Minor cleanups Date: Wed, 21 Jun 2017 10:16:39 +0530 Message-Id: X-Mailer: git-send-email 2.13.0.71.gd7076ec9c9cb Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, You weren't included in the first [1] version of this series, as it was targeting arch/arm*/ directories then. Here are some cleanups for the arch_topology core. Tested on ARM64 Hikey board by setting following in cpu nodes in DT: capacity-dmips-mhz = <1000>; V1->V2: - based over linux-next/master (to get Juri's recent changes) - More cleanups included. V1 only had the first patch. - Rename of cap_parsing_failed isn't required anymore (as it is localized to a single routine now). -- viresh [1] https://marc.info/?l=linux-arm-kernel&m=149795553024005 Viresh Kumar (5): arch_topology: Get rid of "cap_parsing_done" arch_topology: Don't break lines unnecessarily arch_topology: Covert switch block to if block arch_topology: Return 0 or -ve errors from topology_parse_cpu_capacity() arch_topology: Localize cap_parsing_failed to topology_parse_cpu_capacity() arch/arm/kernel/topology.c | 2 +- drivers/base/arch_topology.c | 78 ++++++++++++++++++++++---------------------- 2 files changed, 40 insertions(+), 40 deletions(-) -- 2.13.0.71.gd7076ec9c9cb