From patchwork Fri Jun 23 09:25:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 106248 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp112169qgd; Fri, 23 Jun 2017 02:25:43 -0700 (PDT) X-Received: by 10.84.131.74 with SMTP id 68mr8007588pld.287.1498209943538; Fri, 23 Jun 2017 02:25:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498209943; cv=none; d=google.com; s=arc-20160816; b=kxXn5shv/+IzuDiS4pXpD2csf0cFB/UKk3s+yB2r7QT27Yli1Y3I4j2TCbZ2mRw4H3 hvXn2VcU/LLke2mAimjkyVM5TOmEN9vzGv1BMvSZaEhIACoC89PCCV9QUCNvAjSWLz0G 7eMgLD6Gr7iY+84U3Tt5UFmr9w6fUXJtMYouDLOWGjtu8OxvQwnacm/rm94RSyg4zMlG FNHl3xUVET0Od5WzZzkI2BDW8qp2vNq1kgGSqXCwEgNs/pAqYgt2wCiSODE67LAYMp5A sIXrSlWPgcXaEJXJrPwLAXtmRgICCL/YPOiP/51hLRxNbpQj6eyIfqxM0RI0BtQ16q7D f7vQ== 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=BD9KV1Sx4qZ9OE1mJkdM6kTq3wSZSbE9TNHOiqzGh+k=; b=oESuhOUheSgAsX7PyDFEli/LCZ/vdA5Wl+UKTVYTMDwWkd+obtVUWoq7Wn9Bmbv3qH 1ZG//W+LpxR9ZmvTUdKB1T/0QOkNW6llMHG1XAqEvC5CFvxUH2mH5EvwCkwyz/fRQOTQ aEeLLmV/DHyP+ZsIa5fEvwbvq9MH2UeEjei1oJNng/0O2SO+ujRCQHy1+/xW1hs5lnCj 8T9joWoxPGr8b/rOc7TWTWtmM8bdgVYiI3SlzpckQxnFpDU2xRTKn/bVaBbGrqU+loPd BzXuYiqoWVRbdfaZDnOsgJk5DO8AB1+l63IERf4TFkDsjKMNqnAuWmbU3BdGimgUDJcj +izw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=FMWtHAyh; 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.43; Fri, 23 Jun 2017 02:25:43 -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=FMWtHAyh; 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 S1754610AbdFWJZk (ORCPT + 25 others); Fri, 23 Jun 2017 05:25:40 -0400 Received: from mail-pg0-f48.google.com ([74.125.83.48]:35776 "EHLO mail-pg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753694AbdFWJZi (ORCPT ); Fri, 23 Jun 2017 05:25:38 -0400 Received: by mail-pg0-f48.google.com with SMTP id 132so19045020pgb.2 for ; Fri, 23 Jun 2017 02:25:38 -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=BD9KV1Sx4qZ9OE1mJkdM6kTq3wSZSbE9TNHOiqzGh+k=; b=FMWtHAyh1rwVldtEVp+f9VRA8TfnHSsKdBO26Qq4Y8VkUO1foCIERInojZm3PmCG3O HTjojoNJtaaWV/33tpvJevQYeMvFAnBaq9vGDjiUGmEbRtDhrekqVveNCWgr9X9xWkuY fbuzHnL2R3tGTR8pA8o8D7+kucg6XG43+cZGQ= 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=BD9KV1Sx4qZ9OE1mJkdM6kTq3wSZSbE9TNHOiqzGh+k=; b=ZTlPIudbT21oWfDF2pDaqIT0WMJgJQIAEXD7mUe70ajvxu4khxkcwOe1XmyyRwmvh4 tKmZ5flTCXJXUScMOkVx3CiWdpS47Z6wn99GBBdaFYuzbNDm9pq1jlb+te7lBtjGWCeI lrKxB0+rJc+R4Hc4J+RpqZ3LSD2rUugihLEebuozkoxLU7zagz3zdmrZjCSisoB+v/iN b2qeIkwZhmIoJHXi1j0DOFZhghZVyd3b9tUD2y2GWAGCMV935x8saBXoi/iRsYLFIiA1 q9hlI8zNUY7MJjE4PL/L+2dMNDtJuTzWXfsQq/bXOx4639UsFvU8XExsxL4Z9rlsoi3h nN3g== X-Gm-Message-State: AKS2vOxFk2D666J30+J9Yvd9Rq0BCvIz4pLEOB8J3FcSm52RfkoqAdTy P6X9jJrHpCX1xxsQ X-Received: by 10.84.217.219 with SMTP id d27mr7872000plj.180.1498209938182; Fri, 23 Jun 2017 02:25:38 -0700 (PDT) Received: from localhost ([122.172.59.234]) by smtp.gmail.com with ESMTPSA id d19sm8931630pfd.35.2017.06.23.02.25.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jun 2017 02:25:37 -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 0/5] arch_topology: Minor cleanups Date: Fri, 23 Jun 2017 14:55:29 +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>; V2->V3: - topology_parse_cpu_capacity() returns bool now (Juri). - "Get rid of cap_parsing_done" is the last patch now and its implementation is change a bit (Juri). 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: Don't break lines unnecessarily arch_topology: Convert switch block to if block arch_topology: Change return type of topology_parse_cpu_capacity() to bool arch_topology: Localize cap_parsing_failed to topology_parse_cpu_capacity() arch_topology: Get rid of cap_parsing_done drivers/base/arch_topology.c | 78 +++++++++++++++++++++---------------------- include/linux/arch_topology.h | 4 ++- 2 files changed, 42 insertions(+), 40 deletions(-) -- 2.13.0.71.gd7076ec9c9cb