Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2680726ybl; Sat, 7 Dec 2019 21:53:34 -0800 (PST) X-Google-Smtp-Source: APXvYqzYQEgiYexTgTseRLVmr2aIIet6tTVD5PEd2OppcR1MJLEt/lqqU/y6K3xQD8IWh/anSwBH X-Received: by 2002:aca:3b89:: with SMTP id i131mr13235581oia.43.1575784414866; Sat, 07 Dec 2019 21:53:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575784414; cv=none; d=google.com; s=arc-20160816; b=Go4f5JZNQihB4hvBa8VqOZGZquqMjQIO1nLr1tbWzGmRmGgPJWRbibcFZ4ABJ7vlkd eC8UaWicnx58jXmwmH6RSbU+U11axdOVWsfQFIRz1HCseJHCLZc7RsdYU/ruZOZ0CiLc 6SP6TSUtO+T9CCaTLgbBY/5Ue0cbvxTGpXy/swkcbeF6a2Ys88BdvWTJFT5jWapFIavY AyS/hMlLQo4MGoRkpo+vyWxkI3LsAMjFEbOmQmik5cArlAOKTu/jLSljlKOevaOOoeNC Wv+2W75kK8XLwH+Mav2uF8qIlIa2y4kwGOAcTCRfl8m6hPmfRekJ9p3T0FW0dguzrdib +XMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject; bh=UIOGO86NY1QN/4fI3gQR6x4H6Nk1ZmUidNjOyY3Iho4=; b=Yg7wPAji8vYDp+SH5GwsaZuoPhVGf8YGxhIbSFIAEWQhJrAyFiGdsROlcY9DpsUUrl ez1xspteS9AeE6rLQIiffEGEZUrNYBod2EM9LPFFbb02Qh/tQVlse2EzcTR2GMocSVE9 O3agQ8jmZNGlOTzfVQ1k9o7VImaoE29rDq00A5rEyM6ebBUjnaF3ELA1dSutkB5cwJCf NBAtxJ4IojQdpmWUxJFnoiwClVXr33T0QB5S1kLsBfZWOwy+/UznVxdkq4CSL3+GfnCB eyjnuvjeiKNpGQqd3h3X7ILzDN6a/oxyBIcuCRju+B1cp4GaXE/GFO8j21EXNR6AMbUj IIIQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3si1484062oib.67.2019.12.07.21.53.22; Sat, 07 Dec 2019 21:53:34 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726440AbfLHFwi (ORCPT + 99 others); Sun, 8 Dec 2019 00:52:38 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:14472 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725268AbfLHFwi (ORCPT ); Sun, 8 Dec 2019 00:52:38 -0500 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xB85l0cW122346 for ; Sun, 8 Dec 2019 00:52:36 -0500 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0b-001b2d01.pphosted.com with ESMTP id 2wrt571q79-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 08 Dec 2019 00:52:36 -0500 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 8 Dec 2019 05:52:34 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Sun, 8 Dec 2019 05:52:29 -0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xB85qSHj45547766 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 8 Dec 2019 05:52:28 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 151E64C040; Sun, 8 Dec 2019 05:52:28 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A5EF74C044; Sun, 8 Dec 2019 05:52:23 +0000 (GMT) Received: from localhost.localdomain (unknown [9.85.71.101]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Sun, 8 Dec 2019 05:52:23 +0000 (GMT) Subject: Re: [RFC 3/3] Allow sched_{get,set}attr to change latency_tolerance of the task To: Dietmar Eggemann Cc: Qais Yousef , 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> <09e9a3e1-9c43-a541-01e6-e1b429a63a6f@arm.com> From: Parth Shah Date: Sun, 8 Dec 2019 11:22:22 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <09e9a3e1-9c43-a541-01e6-e1b429a63a6f@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 19120805-0028-0000-0000-000003C67394 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19120805-0029-0000-0000-000024899C17 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-12-07_08:2019-12-05,2019-12-07 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 adultscore=0 spamscore=0 impostorscore=0 mlxlogscore=999 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1912080053 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/6/19 9:34 PM, Dietmar Eggemann wrote: > > > On 05.12.19 10:24, Dietmar Eggemann wrote: >> 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; >>>>> } >> >> [...] >> > > This also would require some changes to UAPI > (include/uapi/linux/sched.h, include/uapi/linux/sched/types.h), see > commit a509a7cd7974 ("sched/uclamp: Extend sched_setattr() to support > utilization clamping") and tools headers UAPI > (tools/include/uapi/linux/sched.h), see commit c093de6bd3c5 ("tools > headers UAPI: Sync sched.h with the kernel"). > Ok. Will add it. Thanks