Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1449335ybl; Thu, 5 Dec 2019 01:25:56 -0800 (PST) X-Google-Smtp-Source: APXvYqxojKfrFKL8g13DEkQLbiQTL/t1uTwEvGKa2oJPG2dbdJ02V6SYL0ADGsDXYa7tRCjnUVMH X-Received: by 2002:a05:6830:1188:: with SMTP id u8mr5796465otq.274.1575537956072; Thu, 05 Dec 2019 01:25:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575537956; cv=none; d=google.com; s=arc-20160816; b=I30B7aLogIsH+YpMQnG8p3+iLqEZrxMm+1oZgxPcPrGKTKUkpTzp6jthvueOfRywcA lKu+KEVeOPxWZZ6jEToKodZaQ21fcLkdbx29IWGKAm94+NMk1j1dl9LyXlD/V6/6dfLA hilv6lykqxWT4navMs5Z3IqzXQUr/rGvCnLFprpgtKUHxY/ycxaiXlSdCrwrE46mfryT lLMddpXmBRUSDAmJov3J4nkyrgo23xo0dAqBetVbrxoLB05GDuoqiu5YOroqY5RsBfN/ tiH2PYx4CPB0c5MXZ6KSilAFYP5AuxTZVX/ltsb1Uz4A+rcTOVas8h7eaC039wvtt9qy DEaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=yf/GdFW8rYiMVJhDvLRFihrPNNqoxriHXzCN7DLL1tE=; b=ykZ5NQOz3xGYTZ3wsPREAGe30phs50dUks9rvwqOkBkzkV1caX/auvV9mc5pvVCQRw QnTxqE+cZeYLiNfpegVDrkvRPOOCkx4t5pk3VwFY9VWYsRssTe9DlKUT0y7Gr6tyUn7v VgvNF99od662bPcMWcxDo0iuNXrFNUOZBUew/fwgGDbfVW1PkFl18+CYG9Ounxh95XyJ n0vHbZHToXu4g61gnjEQ8CHJrvVPJMYqQdzwNzMSkfchxUQdjaIYZKktHumQFwmpQ/4X I8dMgpnIy0x4vlsSik+DxBSwsrxilxIRK8QwENRKqcTIKN+OojU+yjRCO42d5Ogni/gD ls1g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si4930745otq.321.2019.12.05.01.25.44; Thu, 05 Dec 2019 01:25:56 -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; Authentication-Results: mx.google.com; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729100AbfLEJYt (ORCPT + 99 others); Thu, 5 Dec 2019 04:24:49 -0500 Received: from foss.arm.com ([217.140.110.172]:55170 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726239AbfLEJYr (ORCPT ); Thu, 5 Dec 2019 04:24:47 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E7CC41045; Thu, 5 Dec 2019 01:24:46 -0800 (PST) Received: from [192.168.0.9] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 56ACC3F802; Thu, 5 Dec 2019 01:24:44 -0800 (PST) Subject: Re: [RFC 3/3] Allow sched_{get,set}attr to change latency_tolerance of the task To: Parth Shah , Qais Yousef Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, mingo@redhat.com, vincent.guittot@linaro.org, patrick.bellasi@matbug.net, valentin.schneider@arm.com, pavel@ucw.cz, dhaval.giani@oracle.com, qperret@qperret.net, David.Laight@ACULAB.COM, morten.rasmussen@arm.com, pjt@google.com, tj@kernel.org, viresh.kumar@linaro.org, rafael.j.wysocki@intel.com, daniel.lezcano@linaro.org References: <20191125094618.30298-1-parth@linux.ibm.com> <20191125094618.30298-4-parth@linux.ibm.com> <20191203083915.yahl2qd3wnnkqxxs@e107158-lin.cambridge.arm.com> From: Dietmar Eggemann Message-ID: Date: Thu, 5 Dec 2019 10:24:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/12/2019 16:51, Parth Shah wrote: > > On 12/3/19 2:09 PM, Qais Yousef wrote: >> On 11/25/19 15:16, Parth Shah wrote: [...] >>> diff --git a/kernel/sched/core.c b/kernel/sched/core.c >>> index ea7abbf5c1bb..dfd36ec14404 100644 >>> --- a/kernel/sched/core.c >>> +++ b/kernel/sched/core.c >>> @@ -4695,6 +4695,9 @@ static void __setscheduler_params(struct task_struct *p, >>> p->rt_priority = attr->sched_priority; >>> p->normal_prio = normal_prio(p); >>> set_load_weight(p, true); >>> + >>> + /* Change latency tolerance of the task if !SCHED_FLAG_KEEP_PARAMS */ IMHO, this comment seems to be gratuitous. >>> + p->latency_tolerance = attr->sched_latency_tolerance; >>> } [...]