Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1147858yba; Tue, 2 Apr 2019 03:21:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMo3kToY1zzNTAEOH6K4PQwndyr8lQk0aIG3vJeSpSPimebdcRTiicfq6pP6rj/DFoZfoq X-Received: by 2002:a65:6091:: with SMTP id t17mr65444896pgu.328.1554200462698; Tue, 02 Apr 2019 03:21:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554200462; cv=none; d=google.com; s=arc-20160816; b=Hv878v2RaY2iEn+q6Cu6Rb0AyZ7j8UtyQ5SZ1A4ogxoCsuEdVYYmxsSXYSttUh9MJS kz7au/ytJHRqIc3jA1SwZz2fK10XUrslr6w5ElqckzgXVzBe4cybvempCeDyEdybBEfv /e4VDjwzyebCxLm8qpyNtz6Q3JPZHV7PeHfUq5JNHY+mSH8eclYwgNlSabUtzWU/U7eO zPKuIHMDxC5EbYEicQi+1hLQAKqACx6fXHhSSoYnwcsK0n9cM8KE+kY7ZUqBIqF0ivHV 25SaSlqw1dA1Vsq3KcAaMitPmA7yWSV1dDfMkRG54SjBUKReZc3LBVHyp4QOxD7BAWKR zVaQ== 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:dkim-signature; bh=oGd98FSkanS45RkiiD+xRdL3np6AH/9BCAwdx11DOGI=; b=vXpNp1BGL1K116Eq+ao/DhHBlrMTaBMTsXa0rpntd2uRk8VzRHIwCYTCttsiJ9+iWl 3adfzN0V756bCKk+4f1E/i5C1MYWif4+QTk3I/CQ8rEvmYQl1ppjTN8iiu0U392chTZp CXP2zKcVDn9mXExEDe3MaQcpz+kPE4oqacRIxMYLb8juLfs/vxaE8JpOLI586CIUij6Z vA5ww7ztcAfK+Yb2xmMU/38oUblMfKTTsh2Fh5FNT6yOKN1gAPmBAewFjTbanDHau+ve FLfzgJoaACTZWlLmZrmecc3aV6D+cJDdAHKfnMnX/yfBJDO71ZOUCfGSONxOOtZEKqZ1 yW9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=HKCIiuHs; 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 f18si11301355pgg.361.2019.04.02.03.20.47; Tue, 02 Apr 2019 03:21:02 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=HKCIiuHs; 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 S1728909AbfDBIum (ORCPT + 99 others); Tue, 2 Apr 2019 04:50:42 -0400 Received: from merlin.infradead.org ([205.233.59.134]:53294 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725959AbfDBIum (ORCPT ); Tue, 2 Apr 2019 04:50:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=oGd98FSkanS45RkiiD+xRdL3np6AH/9BCAwdx11DOGI=; b=HKCIiuHsWau00I3FhYUeh3Wb4 0bFZ8qPhn03uc3Um5+/36yJK6IhF22rdPoXqWfzLtQAVAfxRuTNJ3JTU1bGViqeauy4I/ivXEiHFi fR0CWGA0NOKU79LsvtbQEONcJ12Riy1RvUB/tN2ePuO+AvaF77z+yKM6jCBen+LCD5CR0kHiU04l5 JocpyHZuXoilRFHPxMR7c7wxfoGfh+EMrZ8NsF9+iAMV0GPmeVXVtWGLca8CzQ+icyse+2bfOEkTo mQDtJtTcHAnDqjDsBFfIAoPDolTCm+e0SzrT6+IexBSRGwOvXR542xd6ItxU6lAOn0G/M7Z6LYE24 M07hnTC+A==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBF7r-0000Up-N8; Tue, 02 Apr 2019 08:50:35 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 761742026AEF9; Tue, 2 Apr 2019 10:50:34 +0200 (CEST) Date: Tue, 2 Apr 2019 10:50:34 +0200 From: Peter Zijlstra To: Kimberly Brown Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 7/8] cpufreq: schedutil: Replace default_attrs field with groups Message-ID: <20190402085034.GK12232@hirez.programming.kicks-ass.net> References: <20190322201440.GA30814@ubu-Virtual-Machine> <18a50bab72e6bd326250b2bd5b5a4b414351815d.1554151487.git.kimbrownkd@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18a50bab72e6bd326250b2bd5b5a4b414351815d.1554151487.git.kimbrownkd@gmail.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 On Mon, Apr 01, 2019 at 10:51:53PM -0400, Kimberly Brown wrote: > The kobj_type default_attrs field is being replaced by the > default_groups field. Replace sugov_tunables_ktype's default_attrs field > with default groups. Change "sugov_attributes" to "sugov_attrs" and use > the ATTRIBUTE_GROUPS macro to create sugov_groups. > > This patch was tested by setting the scaling governor to schedutil and > verifying that the sysfs files for the attributes in the default groups > were created. > > Signed-off-by: Kimberly Brown Acked-by: Peter Zijlstra (Intel) Please route the patch as is most convenient. > --- > kernel/sched/cpufreq_schedutil.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c > index 5c41ea367422..148b60c8993d 100644 > --- a/kernel/sched/cpufreq_schedutil.c > +++ b/kernel/sched/cpufreq_schedutil.c > @@ -598,13 +598,14 @@ rate_limit_us_store(struct gov_attr_set *attr_set, const char *buf, size_t count > > static struct governor_attr rate_limit_us = __ATTR_RW(rate_limit_us); > > -static struct attribute *sugov_attributes[] = { > +static struct attribute *sugov_attrs[] = { > &rate_limit_us.attr, > NULL > }; > +ATTRIBUTE_GROUPS(sugov); > > static struct kobj_type sugov_tunables_ktype = { > - .default_attrs = sugov_attributes, > + .default_groups = sugov_groups, > .sysfs_ops = &governor_sysfs_ops, > }; > > -- > 2.17.1 >