Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2354501pxp; Mon, 21 Mar 2022 17:50:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWX1VjcwlRglbQlMh7FPOnLoVSDxiQyYLacmI/15wdgz04CyuK1TtP45uuAjuLaUxkW4Wc X-Received: by 2002:a17:902:e943:b0:14f:4a2b:203 with SMTP id b3-20020a170902e94300b0014f4a2b0203mr15489351pll.113.1647910259734; Mon, 21 Mar 2022 17:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647910259; cv=none; d=google.com; s=arc-20160816; b=nl6eh6Qw/ifF7A0MIBdARosUTLUOmMD7kekDGpGWcuMbUkKudxmobGu1s1Hj5SNqpr CqJ7J0tgFdTfTZCRZP94KrC1p4A3rEfgtifRNK6JbLXzb6khpGFsG3XBnWL/zIBECBrw z0yzlmVhQ0jrWhglE82cBQQMK7D9Ky57scAVOiOsWID+CMMtyADbZ8Y5bBbeL6nvD43S KCVYAYdPrPUeKGykR66TsAkongZh+3NdbkI+Dc/b7moJvLBRBjS5zWfiRSw0t1TgzIFf vDw3GbFLOrJtNrsqfS2kokRvN0CIq8dxeWQSFSxO8wv2pyPJlJmd8C1V7K1CjybyFmFz sxIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=kLgMP3mQNBnrnSHbhYkXy94SqGsyBw7LmZHsSCBZ2j4=; b=tadqt98chOag3OWb763g/He1okr9erUclJz/GmlMUZ276xTSOi+QaOauy0h9dJGEZF 1w23OiSwfY50P84Yy/N+AIrmTkLtOoWGb4DrSEvLz/jMtszDuvXhgX/6is2QchAtOcf3 M+7K36NRqpdboWQk2aYgSpjr6rIXLFkiLG06O8diXYoW0agRgs0IVLPp2x0XYhQsED8E Nuxrs3B/CffHsVrbWTnZn+D25NZOHWeQ6K7wy7VuHbHj6YSAj0+xeSpFLOovsEoY6qQl Wf0lGtkKlkp9JKoe7BSnie+Bu+LP0IQu+rd7ZovfF1oWu5V+LJYWNLndqpU3fJUwpKOc N9YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Umqy38rg; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u27-20020a63141b000000b003816043ee70si14237152pgl.101.2022.03.21.17.50.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 17:50:59 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Umqy38rg; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B8B441760D1; Mon, 21 Mar 2022 17:23:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233951AbiCVAYv (ORCPT + 99 others); Mon, 21 Mar 2022 20:24:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233943AbiCVAYt (ORCPT ); Mon, 21 Mar 2022 20:24:49 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D65622DF3 for ; Mon, 21 Mar 2022 17:23:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647908587; x=1679444587; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=hOiVnLtmtOaXxc1V56DZer88UbTpxYJfZvguMvjAozA=; b=Umqy38rg2URe9i2elChsnVFa0SPtOi4kyI8kEU7/LngfECPLF5JVV6gS jajSmqDy5ElB1UK8UoFFf9Eh4KvtaZ4jJwj/kcbq31H1tEmcL4Uuxud5D 2EXlbLYfTvJIa9x3WLDc9aK1RO0J3vy9YthHmxApOBa2eM35A5Yq2GteN XxnNaMPNjqkuHZC6DIhH3ehLjf4dvfupnWKRQhGABuyAt1X/R65UN6Est a0A2K2zaQKNpDipafN/RSn1/Q1GAWc71IhRbev+VSHDgq2C7w7PhiIX+5 /aN2etbMBriBWZH4prKplRCU/blnsPCrxLPKVnhm+B2+PprfjxiWOs4XW g==; X-IronPort-AV: E=McAfee;i="6200,9189,10293"; a="238287755" X-IronPort-AV: E=Sophos;i="5.90,200,1643702400"; d="scan'208";a="238287755" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2022 17:22:23 -0700 X-IronPort-AV: E=Sophos;i="5.90,200,1643702400"; d="scan'208";a="518647965" Received: from schen9-mobl.amr.corp.intel.com ([10.212.227.186]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2022 17:22:22 -0700 Message-ID: <2d401a6c591e7fd1711c0db5b28517f7bf1f5adc.camel@linux.intel.com> Subject: Re: [PATCH 3/6] sched: Allow sched_{get,set}attr to change latency_nice of the task From: Tim Chen To: Vincent Guittot , mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, linux-kernel@vger.kernel.org, parth@linux.ibm.com Cc: qais.yousef@arm.com, chris.hyser@oracle.com, pkondeti@codeaurora.org, valentin.schneider@arm.com, patrick.bellasi@matbug.net, David.Laight@aculab.com, pjt@google.com, pavel@ucw.cz, tj@kernel.org, dhaval.giani@oracle.com, qperret@google.com Date: Mon, 21 Mar 2022 17:22:22 -0700 In-Reply-To: <20220311161406.23497-4-vincent.guittot@linaro.org> References: <20220311161406.23497-1-vincent.guittot@linaro.org> <20220311161406.23497-4-vincent.guittot@linaro.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2022-03-11 at 17:14 +0100, Vincent Guittot wrote: > > +static void __setscheduler_latency(struct task_struct *p, > + const struct sched_attr *attr) > +{ > + if (attr->sched_flags & SCHED_FLAG_LATENCY_NICE) { > + p->latency_prio = NICE_TO_LATENCY(attr->sched_latency_nice); NICE_TO_LATENCY used here but has defined later in patch 5. This will break bisect. > + set_latency_weight(p); > + } > } > > Tim