Message ID | 1366910611-20048-6-git-send-email-vincent.guittot@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCPZXIGQSEHBB3GN4WFQKGQEQUINRTI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F02E82395D for <linaro@patches.linaro.org>; Thu, 25 Apr 2013 17:25:53 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id b14sf4747803qcs.0 for <linaro@patches.linaro.org>; Thu, 25 Apr 2013 10:25:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=hga3RQv+FJBo1rNuH7XXcAQ1HAjG5GeBs88hj7eyn/s=; b=i6Sj2Dp7Q6ZfJRfC9xv6Ihh3IKk1Y9taOs3Mc4DbJ4m4RslFIdJ8/EP74UQYvwz0aK r+ORtQiStrTdKeisIQiy7Db2r4b0yX2p7t0ZvKVtBADF90GrcFQnVLfNCyTJEsYPG4oB EQpMsS/SexGw9mxv6kLKi0aY1lTkftOlOHiotVzq5f8f5V1cNHa9gM7/sODhL3fvJb1I cLDanI59sALf0g6PF7mtxQG9og+b0PsQTSxGsXJ4DDLmGRXzCf5LctVsH+jZd3p3lJl+ q44BofZUSmKGmohCQhGYflMyMhS8sC5INDKr4l59q+mAXHvRX8HtIPxOBGBCD5OHN4S+ EU7Q== X-Received: by 10.224.215.194 with SMTP id hf2mr27456970qab.0.1366910700151; Thu, 25 Apr 2013 10:25:00 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.127.230 with SMTP id nj6ls1531284qeb.87.gmail; Thu, 25 Apr 2013 10:25:00 -0700 (PDT) X-Received: by 10.220.147.12 with SMTP id j12mr27586218vcv.59.1366910699988; Thu, 25 Apr 2013 10:24:59 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id j11si3701331vcw.5.2013.04.25.10.24.59 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Apr 2013 10:24:59 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id ht11so3078407vcb.13 for <patchwork-forward@linaro.org>; Thu, 25 Apr 2013 10:24:59 -0700 (PDT) X-Received: by 10.52.163.231 with SMTP id yl7mr23391634vdb.57.1366910699895; Thu, 25 Apr 2013 10:24:59 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp32658veb; Thu, 25 Apr 2013 10:24:59 -0700 (PDT) X-Received: by 10.180.36.48 with SMTP id n16mr90256904wij.30.1366910698965; Thu, 25 Apr 2013 10:24:58 -0700 (PDT) Received: from mail-wg0-x235.google.com (mail-wg0-x235.google.com [2a00:1450:400c:c00::235]) by mx.google.com with ESMTPS id fv3si9530178wib.127.2013.04.25.10.24.58 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Apr 2013 10:24:58 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c00::235 is neither permitted nor denied by best guess record for domain of vincent.guittot@linaro.org) client-ip=2a00:1450:400c:c00::235; Received: by mail-wg0-f53.google.com with SMTP id z11so1597966wgg.8 for <patches@linaro.org>; Thu, 25 Apr 2013 10:24:58 -0700 (PDT) X-Received: by 10.180.205.135 with SMTP id lg7mr61158531wic.11.1366910698576; Thu, 25 Apr 2013 10:24:58 -0700 (PDT) Received: from localhost.localdomain (LPuteaux-156-14-44-212.w82-127.abo.wanadoo.fr. [82.127.83.212]) by mx.google.com with ESMTPSA id q13sm12311485wie.8.2013.04.25.10.24.56 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Apr 2013 10:24:58 -0700 (PDT) From: Vincent Guittot <vincent.guittot@linaro.org> To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org, peterz@infradead.org, mingo@kernel.org, linux@arm.linux.org.uk, pjt@google.com, santosh.shilimkar@ti.com, Morten.Rasmussen@arm.com, chander.kashyap@linaro.org, cmetcalf@tilera.com, tony.luck@intel.com, alex.shi@intel.com, preeti@linux.vnet.ibm.com Cc: paulmck@linux.vnet.ibm.com, tglx@linutronix.de, len.brown@intel.com, arjan@linux.intel.com, amit.kucheria@linaro.org, corbet@lwn.net, l.majewski@samsung.com, Vincent Guittot <vincent.guittot@linaro.org> Subject: [PATCH 05/14] ARM: sched: clear SD_SHARE_POWERDOMAIN Date: Thu, 25 Apr 2013 19:23:21 +0200 Message-Id: <1366910611-20048-6-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1366910611-20048-1-git-send-email-vincent.guittot@linaro.org> References: <1366910611-20048-1-git-send-email-vincent.guittot@linaro.org> X-Gm-Message-State: ALoCoQmYuMz7GNLCI7sCuuiK66FNn1FFozj1RRmZutcph4wagPu/5EOP6578qdH8Ksy5hd7sLNnE X-Original-Sender: vincent.guittot@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.182 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post?hl=en-US>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?hl=en-US&topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/?hl=en-US> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe?hl=en-US>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c index 79282eb..f89a4a2 100644 --- a/arch/arm/kernel/topology.c +++ b/arch/arm/kernel/topology.c @@ -201,6 +201,15 @@ static inline void update_cpu_power(unsigned int cpuid, unsigned int mpidr) {} */ struct cputopo_arm cpu_topology[NR_CPUS]; +int arch_sd_local_flags(int level) +{ + /* Powergate at threading level doesn't make sense */ + if (level & SD_SHARE_CPUPOWER) + return 1*SD_SHARE_POWERDOMAIN; + + return 0*SD_SHARE_POWERDOMAIN; +} + const struct cpumask *cpu_coregroup_mask(int cpu) { return &cpu_topology[cpu].core_sibling;