From patchwork Mon Jan 20 12:39:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dietmar Eggemann X-Patchwork-Id: 23382 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1FA182107B for ; Mon, 20 Jan 2014 12:40:48 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id ar20sf14198836iec.5 for ; Mon, 20 Jan 2014 04:40:47 -0800 (PST) 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:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=WZT0SW+VTOQqjFQE4ATBCdpBRSVzMIQ1WBgxOAYoRiw=; b=BMsVDfa2MJhvgEMfeTqHQemTarH1k09yr8qWPiv7uDluU2orUBukQJzcc4rFxsS/fy 1Yunm+PT8ttksqwBepTBIdy6XZhFqHMpH6jpUIb2RRknmNx41S4KoWXiic0dVNTOX9yw M4YPdbOkWQGXJdXUTp3OU2oXSukUr/NNgsHdOLBsUnjo2k8e9BT1L+Q2JlAXXiHL0tc1 wbgoAdpHDvkDcIsX2IM+jhvD1PJ8HE1lz9GBbp3yfjX3dxz2rTYu+ff0GEQHpRZhLtVW SXSB2B43xvwMoiO+gw5GR6pgXkLfCOtPqIXVtmI6o3Nm1VwofhfCFa9nBFN7hdktX+rU 5AzA== X-Gm-Message-State: ALoCoQnAS8fikBmcpYtik9GVFks32wLHC9tT4gGjALl5xLQ3nikeC1Ch3OiAkwucRhlSmr/VLRil X-Received: by 10.182.230.168 with SMTP id sz8mr6603714obc.9.1390221647425; Mon, 20 Jan 2014 04:40:47 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.94.78 with SMTP id da14ls668277qeb.46.gmail; Mon, 20 Jan 2014 04:40:47 -0800 (PST) X-Received: by 10.52.170.241 with SMTP id ap17mr8708430vdc.13.1390221647286; Mon, 20 Jan 2014 04:40:47 -0800 (PST) Received: from mail-vb0-f49.google.com (mail-vb0-f49.google.com [209.85.212.49]) by mx.google.com with ESMTPS id go5si291940vec.109.2014.01.20.04.40.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Jan 2014 04:40:47 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.49 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.49; Received: by mail-vb0-f49.google.com with SMTP id x14so2733718vbb.36 for ; Mon, 20 Jan 2014 04:40:47 -0800 (PST) X-Received: by 10.53.13.44 with SMTP id ev12mr8774917vdd.17.1390221647203; Mon, 20 Jan 2014 04:40:47 -0800 (PST) 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.220.174.196 with SMTP id u4csp55895vcz; Mon, 20 Jan 2014 04:40:46 -0800 (PST) X-Received: by 10.66.197.164 with SMTP id iv4mr18552489pac.18.1390221646343; Mon, 20 Jan 2014 04:40:46 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wm3si1335349pab.223.2014.01.20.04.40.43; Mon, 20 Jan 2014 04:40:43 -0800 (PST) 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 S1753535AbaATMkQ (ORCPT + 26 others); Mon, 20 Jan 2014 07:40:16 -0500 Received: from service87.mimecast.com ([91.220.42.44]:51608 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752173AbaATMkG (ORCPT ); Mon, 20 Jan 2014 07:40:06 -0500 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Mon, 20 Jan 2014 12:40:04 +0000 Received: from e103711-lin.cambridge.arm.com ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 20 Jan 2014 12:40:02 +0000 From: dietmar.eggemann@arm.com To: peterz@infradead.org, mingo@redhat.com, vincent.guittot@linaro.org, morten.rasmussen@arm.com, chris.redpath@arm.com Cc: linux-kernel@vger.kernel.org, dietmar.eggemann@arm.com Subject: [RFC v2 PATCH 03/11] sched: define TOPOLOGY_SD_FLAGS Date: Mon, 20 Jan 2014 12:39:40 +0000 Message-Id: <1390221588-20473-4-git-send-email-dietmar.eggemann@arm.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1390221588-20473-1-git-send-email-dietmar.eggemann@arm.com> References: <1390221588-20473-1-git-send-email-dietmar.eggemann@arm.com> X-OriginalArrivalTime: 20 Jan 2014 12:40:02.0926 (UTC) FILETIME=[BD4248E0:01CF15DC] X-MC-Unique: 114012012400400301 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: dietmar.eggemann@arm.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.49 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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: , From: Dietmar Eggemann TOPOLOGY_SD_FLAGS contains all SD flags which provide topology related information towards the scheduler. All other SD flags describe scheduler behavioural aspects. The aim of TOPOLOGY_SD_FLAGS is to be able to check that the arch only specifies topology related flags in the topology info array. Signed-off-by: Dietmar Eggemann --- kernel/sched/sched.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 88c85b21d633..fcf2d4317217 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -1414,3 +1414,19 @@ static inline u64 irq_time_read(int cpu) } #endif /* CONFIG_64BIT */ #endif /* CONFIG_IRQ_TIME_ACCOUNTING */ + +/* + * SD_flags allowed in topology descriptions. + * + * SD_SHARE_CPUPOWER - describes SMT topologies + * SD_SHARE_PKG_RESOURCES - describes shared caches + * SD_NUMA - describes NUMA topologies + * + * Odd one out: + * SD_ASYM_PACKING - describes SMT quirks + */ +#define TOPOLOGY_SD_FLAGS \ + (SD_SHARE_CPUPOWER | \ + SD_SHARE_PKG_RESOURCES | \ + SD_NUMA | \ + SD_ASYM_PACKING)