From patchwork Tue Feb 11 08:24:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juri Lelli X-Patchwork-Id: 24438 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 983DA206FF for ; Tue, 11 Feb 2014 08:25:17 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id hq11sf16685270vcb.4 for ; Tue, 11 Feb 2014 00:25:16 -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; bh=7iSqVkZG0MglgABsyHPzZ0XliCIM8cgM2RQwNoy09E0=; b=kfvi3uxgxsg04enyGvW4vsb9dunUXqUZHAb4ngg5n3JxP8novBRKH7vVvttVDfZK5S BE5fkgx8izE9GwWmdRhP1OjhcDLWcLxxkJNY1/AnaoX2+tsQmJRG3AY11lbeQHzj8r1/ 6oNf9Ki/WzFOmHXDEmA6skSiZlj317TfpmOZtce5FvYmBh3rqylZLtK1X5BnYfVD2vD4 m5mNvprkCK/h9ApMEVPxKotN+rRalJH1ojQ/3feeypAU6fCoLdEPH4iEbHrrHJd3y+PS JboodxSzcZwaInwKWMwpgj0FUvAzlngxolgwvfAC9d8sNwEYGXGjlE+qfhPzIL52psV2 YlYw== X-Gm-Message-State: ALoCoQncFTYUf/hlaYuLFWi6lA/YU25cX/k/34/i0OwkNadrv3RwrPcx7D3aj8R8P2do4D6A3Uuo X-Received: by 10.58.151.98 with SMTP id up2mr13183916veb.14.1392107116669; Tue, 11 Feb 2014 00:25:16 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.109.101 with SMTP id k92ls2351974qgf.78.gmail; Tue, 11 Feb 2014 00:25:16 -0800 (PST) X-Received: by 10.220.145.5 with SMTP id b5mr21832994vcv.9.1392107116547; Tue, 11 Feb 2014 00:25:16 -0800 (PST) Received: from mail-vc0-x22f.google.com (mail-vc0-x22f.google.com [2607:f8b0:400c:c03::22f]) by mx.google.com with ESMTPS id fo2si5651745vcb.12.2014.02.11.00.25.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Feb 2014 00:25:16 -0800 (PST) Received-SPF: neutral (google.com: 2607:f8b0:400c:c03::22f 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:c03::22f; Received: by mail-vc0-f175.google.com with SMTP id ij19so5541710vcb.6 for ; Tue, 11 Feb 2014 00:25:16 -0800 (PST) X-Received: by 10.52.30.230 with SMTP id v6mr23009588vdh.6.1392107116456; Tue, 11 Feb 2014 00:25:16 -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 u4csp228885vcz; Tue, 11 Feb 2014 00:25:15 -0800 (PST) X-Received: by 10.68.135.137 with SMTP id ps9mr9114670pbb.160.1392107115157; Tue, 11 Feb 2014 00:25:15 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i8si18162814pav.74.2014.02.11.00.25.12; Tue, 11 Feb 2014 00:25:12 -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 S1752693AbaBKIYv (ORCPT + 27 others); Tue, 11 Feb 2014 03:24:51 -0500 Received: from mail-ea0-f177.google.com ([209.85.215.177]:36703 "EHLO mail-ea0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752640AbaBKIYr (ORCPT ); Tue, 11 Feb 2014 03:24:47 -0500 Received: by mail-ea0-f177.google.com with SMTP id m10so869092eaj.8 for ; Tue, 11 Feb 2014 00:24:46 -0800 (PST) X-Received: by 10.14.216.3 with SMTP id f3mr1301245eep.66.1392107086728; Tue, 11 Feb 2014 00:24:46 -0800 (PST) Received: from neville.retis (nat-cataldo.sssup.it. [193.205.81.5]) by mx.google.com with ESMTPSA id s46sm64274726eeb.0.2014.02.11.00.24.45 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Feb 2014 00:24:46 -0800 (PST) From: Juri Lelli To: mingo@redhat.com, peterz@infradead.org Cc: linux-kernel@vger.kernel.org, Juri Lelli Subject: [REPOST - PATCH 1/2] sched/core: fix sched_rt_global_validate Date: Tue, 11 Feb 2014 09:24:26 +0100 Message-Id: <1392107067-19907-2-git-send-email-juri.lelli@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1392107067-19907-1-git-send-email-juri.lelli@gmail.com> References: <1392107067-19907-1-git-send-email-juri.lelli@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: juri.lelli@gmail.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c03::22f 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; dkim=neutral (bad format) header.i=@gmail.com; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com 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: , Don't compare sysctl_sched_rt_runtime against sysctl_sched_rt_period if the former is equal to RUNTIME_INF, otherwise disabling -rt bandwidth management (with CONFIG_RT_GROUP_SCHED=n) fails. Cc: Ingo Molnar Cc: Peter Zijlstra Signed-off-by: Juri Lelli --- kernel/sched/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 104c816..604dd4e 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -7465,7 +7465,8 @@ static int sched_rt_global_validate(void) if (sysctl_sched_rt_period <= 0) return -EINVAL; - if (sysctl_sched_rt_runtime > sysctl_sched_rt_period) + if ((sysctl_sched_rt_runtime != RUNTIME_INF) && + (sysctl_sched_rt_runtime > sysctl_sched_rt_period)) return -EINVAL; return 0;