Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11098649ybi; Thu, 25 Jul 2019 09:58:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzJzfxLkrY5kmqWQU4/UBc76CRDVMYu/44W91qccfqtg7KQramBUNl+HEg4JwaE0Rl2DTd X-Received: by 2002:a17:90a:ca11:: with SMTP id x17mr94499703pjt.107.1564073933729; Thu, 25 Jul 2019 09:58:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564073933; cv=none; d=google.com; s=arc-20160816; b=vCAVIWtJ9jcp3ZxsytpEOSU36y2PR3qYioIlMQsJ4T1pCTjrkDDvB3X0Pojzr6xuUR vj+6frOm6p8kPPbTdVNCS4vs9+N5gwOtGIE8NC774Z7JiJ2v8wCiGbZVg2MvzPAsB1VQ UYd/Al0PYVV8CJUV9lSdEZfBwoPDNaJ65BSrmcF42Lu/YfP1AKEPpWHJAqabjKyJO0ue zo8V0p9aMhEkK+wgDn2KSHiJXFMTkHFSNJfdSdr9iMAFLd3ji9ymVeW3nNmvxlRE4tsP nsGQnGN9UZRiP99xZLoo03ef9yXgs34jGWf010asXm+MtOAgX3ZjY4kb0OfZO+QN5mwv LQbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=N7S6XENIfjLeQtwNBjQhNCyO2R4vhhDFFK33uMBrRvU=; b=rEjKbYqvT0Idh1PCP8ZT5AKRBtKqmCItL18EFh/ppCFu274iFONxEp2TJpn6ua6TOS sPR9EdxZtaSN0Mi9Evo0jmvHEu33eFmA9Qf6FbnFwfU+oVy1UF/jGVtlPUQRe4ZWCnPG MvvXE//eQC1zPtODqqOYAemF+BckBCMmIr/7dKSrnWPfz4fq1/CtWZyzjpiXeTt2A3dR 6DbGQtgkGxxSs1sgILI46sxplnDoUahJO0NExaZX6F7Ju/TMEXJVrxVOufiNhVVz/lhG RwoZExlaX+1r3SL7RmDwqOgXOH2Juv8XGFoi9ADtSzlASPMTan25QGSFpuZAY1RfDBwP ZopQ== 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 k11si17120537pfi.3.2019.07.25.09.58.39; Thu, 25 Jul 2019 09:58:53 -0700 (PDT) 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 S2404154AbfGYLlK (ORCPT + 99 others); Thu, 25 Jul 2019 07:41:10 -0400 Received: from mx2.suse.de ([195.135.220.15]:57892 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2404095AbfGYLlK (ORCPT ); Thu, 25 Jul 2019 07:41:10 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E920FAC7F; Thu, 25 Jul 2019 11:41:08 +0000 (UTC) Date: Thu, 25 Jul 2019 13:41:04 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Patrick Bellasi Cc: cgroups@vger.kernel.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Alessio Balsini , Dietmar Eggemann , Morten Rasmussen , Quentin Perret , Joel Fernandes , Paul Turner , Steve Muckle , Suren Baghdasaryan , Todd Kjos , Peter Zijlstra , "Rafael J . Wysocki" , Tejun Heo , Vincent Guittot , Viresh Kumar , Juri Lelli , Ingo Molnar Subject: Re: [PATCH v12 1/6] sched/core: uclamp: Extend CPU's cgroup controller Message-ID: <20190725114104.GA32159@blackbody.suse.cz> References: <20190718181748.28446-1-patrick.bellasi@arm.com> <20190718181748.28446-2-patrick.bellasi@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <20190718181748.28446-2-patrick.bellasi@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --huq684BweRXVnRxX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jul 18, 2019 at 07:17:43PM +0100, Patrick Bellasi wrote: > +static ssize_t cpu_uclamp_min_write(struct kernfs_open_file *of, > + char *buf, size_t nbytes, > + loff_t off) > +{ > [...] > +static ssize_t cpu_uclamp_max_write(struct kernfs_open_file *of, > + char *buf, size_t nbytes, > + loff_t off) > +{ > [...] These two functions are almost identical yet not trivial. I think it wouldn be better to have the code at one place only and distinguish by the passed clamp_id. --huq684BweRXVnRxX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE+amhwRV4jZeXdUhoK2l36XSZ9y4FAl05lUYACgkQK2l36XSZ 9y7Meg//XYuI6RtgY7nvoy6nONBJMrQ19r8x3sSKeZuiaQkV0dd3+evkOvB/kLMl AYIj6JzQIYeRl1D+4ga4YDu1Fr70P/JsGuKzE4TZGACpvbNUD34QnN6ft/iUFr/5 1p2AmCZ7JUGoJk8yLrGIswDkKzemiws0p2umjXix0znDoHdqmsxe+Sr3RllrfP+K OoyGgZ1vT9/4sWNdeGSPsYu95PnYAc7d63Vxeb3zjsGtvoBRaBS92TS66lbY3GaJ Lu9KK1n+56nH4EY+su8FTN6jXTdRmp3KV41aLP4oTyfHEhF7VKGR3i0CXVvz7jbk f2xdK4OZfA48I30IIXUMUycGKG3X2g3Y/eKpXbfDs1XgXm2AXYhIgVocrAJUf2pN I8eslVJJjHe9yH9wNsTpLKTgsadqc4iMVs9mAuxW8ZiiDxyVqeOKdSwiYnX8fhMQ 47T1HCoSVzNoK214fLwxv3zE2WQUychjydtw2zDY3lByp9EMK5E5fUYTKU38NWnI x7uvoiFsbOIr++i+ZIEzi2jvUqlIeUwRefoGqqVKo/i8/op7qZ/I5seN2Zlpa/Rn kcDZ9WBNPwrLrnR6p5gOEspt3SHruC5i8i9fNptbdv3PFi7OLcIsLy/UGqlrGShj AvPsECBKiM7gzqXeZojJWGq4nrFbFq0VZeHC7nnp5WHfWGKGbZs= =NrKU -----END PGP SIGNATURE----- --huq684BweRXVnRxX--