Message ID | 1366910611-20048-15-git-send-email-vincent.guittot@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCPZXIGQSEHBB76N4WFQKGQEO3OPXSA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f200.google.com (mail-ve0-f200.google.com [209.85.128.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 819642395D for <linaro@patches.linaro.org>; Thu, 25 Apr 2013 17:26:13 +0000 (UTC) Received: by mail-ve0-f200.google.com with SMTP id ox1sf2700245veb.3 for <linaro@patches.linaro.org>; Thu, 25 Apr 2013 10:25:19 -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=OAG2nqRNlw1EGjDK1nAhxSXLTUQtqFLFPq8/xATLNhE=; b=Ja2zmyVDrP+5ug4g02WYEK6w+WVGGZeyBvJ1X9QAUPVGZAG1w0dOpEODJDrrqPAZXE dgwKh3lSY6OA3kmWrIs/A3kR/zlphEGAT7YyslrRtSlpWZGcJdP8mnwfDsOCwk32OJzZ HT+YIrUTXS5yc2ofUmZvgsScOSyLE526agPS5cGYUspDPBDQvFoCFi9m952ccZ4wfnM9 CdooDajQMGT/na+bB9nCWbPs1zN7C0Q0Wgqf9P3cN54XhzdhapoYRGkNcMMZXzqG5BxU nzz/83J5h7vGCgjbEvplfkqRdCbeeET/gKnGZqjeUfOtcZYi93RcFPsB6hBIGARUxgyo AfHA== X-Received: by 10.236.19.198 with SMTP id n46mr18772531yhn.8.1366910719815; Thu, 25 Apr 2013 10:25:19 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.71.231 with SMTP id y7ls1406552qeu.16.gmail; Thu, 25 Apr 2013 10:25:19 -0700 (PDT) X-Received: by 10.52.249.105 with SMTP id yt9mr23277440vdc.86.1366910719671; Thu, 25 Apr 2013 10:25:19 -0700 (PDT) Received: from mail-vb0-x229.google.com (mail-vb0-x229.google.com [2607:f8b0:400c:c02::229]) by mx.google.com with ESMTPS id gr7si3638544vdc.155.2013.04.25.10.25.19 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Apr 2013 10:25:19 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::229 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::229; Received: by mail-vb0-f41.google.com with SMTP id f12so861826vbg.14 for <patchwork-forward@linaro.org>; Thu, 25 Apr 2013 10:25:19 -0700 (PDT) X-Received: by 10.58.173.36 with SMTP id bh4mr13587391vec.9.1366910719585; Thu, 25 Apr 2013 10:25:19 -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 nf2csp32678veb; Thu, 25 Apr 2013 10:25:19 -0700 (PDT) X-Received: by 10.180.86.230 with SMTP id s6mr2885424wiz.6.1366910718626; Thu, 25 Apr 2013 10:25:18 -0700 (PDT) Received: from mail-we0-x234.google.com (mail-we0-x234.google.com [2a00:1450:400c:c03::234]) by mx.google.com with ESMTPS id n8si2737137wjq.106.2013.04.25.10.25.18 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Apr 2013 10:25:18 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c03::234 is neither permitted nor denied by best guess record for domain of vincent.guittot@linaro.org) client-ip=2a00:1450:400c:c03::234; Received: by mail-we0-f180.google.com with SMTP id x43so2815016wey.11 for <patches@linaro.org>; Thu, 25 Apr 2013 10:25:18 -0700 (PDT) X-Received: by 10.194.5.4 with SMTP id o4mr71017375wjo.40.1366910718238; Thu, 25 Apr 2013 10:25:18 -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.25.16 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Apr 2013 10:25:17 -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 14/14] sched: force migration on buddy CPU Date: Thu, 25 Apr 2013 19:23:30 +0200 Message-Id: <1366910611-20048-15-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: ALoCoQl/694ld7FbFOfvmMg1y4YXTPmhU7haTClUVY5kXeztKQDdMrsOcPuhrWYMJQmy9PkNTH0z X-Original-Sender: vincent.guittot@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::229 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/kernel/sched/fair.c b/kernel/sched/fair.c index 54c1541..f87aed2 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -4729,6 +4729,9 @@ static inline void update_sg_lb_stats(struct lb_env *env, max_nr_running = nr_running; if (min_nr_running > nr_running) min_nr_running = nr_running; + + if (!is_my_buddy(i, i) && nr_running > 0) + sgs->group_imb = 1; } sgs->group_load += load;
If a CPU that doesn't participate to the packing effort, has at least one running task, it means that its group is imbalanced and the CPUs can pull this task. Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org> --- kernel/sched/fair.c | 3 +++ 1 file changed, 3 insertions(+)