Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp878371yba; Mon, 1 Apr 2019 19:54:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXnhjsQrMP5llwPn7NKj98WXkQfCCF+NvLVqF5Zts+87m9ApB6CN1sx09iypKlN/jF0/IN X-Received: by 2002:a63:d1f:: with SMTP id c31mr40169355pgl.353.1554173686335; Mon, 01 Apr 2019 19:54:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554173686; cv=none; d=google.com; s=arc-20160816; b=CKLdjvqa3KvESMfogQLqsMElJohB7Ld7XCZLmCzNqTwXdQne8vMyQXXRF5HZeaFOHL 9D1ILiE0nMOGfLPj931KnaeKEHyTaa8/C/B++WuQ3UslMxP3YA6JNJdi4DAyhWb3QhUq 4vDDGe0ky/QV3AGINS2TsJf9BSMWpkI5FqOFpHHDa0rU9zSJsGU2agBAffrQHwVV5wtS N+wHYQ+zmWGsmNHNgcWUhMsHy2NYa7Nbeb2gc5z6T2CN5qiGkpb7TWkRpEo7FE4pJ1zJ KEwOizvThcXAFuxCFySNsfyqIOBJpUvLP3nVSbJMmg0MZVHoB3qcx79dn6chFMrOmCh2 R45A== 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=oUxF2b4WKgUzih0SC0IktVZrnDr9sVA4+xZBrQT4vKY=; b=SjB94cWYaZPBZqfRTBzjj9gf97F2QBV4IIOOxa4MRh022O2Bmr/iCXjdQzcioi2ns3 ngE+/bCeFY2Vr71K5MawUhURXZItLYfHsgwa6Yx0oBv0FS0jGwY0md3e+uBjC5acNi+Y ih38+1hgPK8UK4RHPjALG4pM3zXHz4IPRFr0/eAY3D8KwSCIkOSGWInAxzVZQB+AozvA j43OnPhzZ+cJuKbzQ+B0HIBigm0BrVxQ3KRs6UhAHj+hHkCs5N8HXF4d9/W1tAwZSvwl 4Pi4IhbmToSUKw58SwQg1GsCGW7cwvhUhl0Ne9ZmJrnVDiu/21pEJ4bWvtJjyTjHZcD7 hTGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="uF/NcU0s"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4si10190871plo.203.2019.04.01.19.54.30; Mon, 01 Apr 2019 19:54:46 -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=pass header.i=@gmail.com header.s=20161025 header.b="uF/NcU0s"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729014AbfDBCv5 (ORCPT + 99 others); Mon, 1 Apr 2019 22:51:57 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:38755 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726269AbfDBCv4 (ORCPT ); Mon, 1 Apr 2019 22:51:56 -0400 Received: by mail-it1-f195.google.com with SMTP id f22so2730608ita.3 for ; Mon, 01 Apr 2019 19:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=oUxF2b4WKgUzih0SC0IktVZrnDr9sVA4+xZBrQT4vKY=; b=uF/NcU0sN2WDp/WLa0AzBa1SFNgyH78fzCw/dbd6vYdN1H/7OT3ToIXJT134GZoYGX sfHp448ay6pAm9xt6PrnTXJEADOqVfMhmMbAABubbSBBMi5ogg2zQMMr21Ooyj/py9hh ZDmCaefeZElozqZAJVe5e+d4u0q3T/lfhSvJj9sdQyBI9j/vuz+ffZbNwKubekrhRx2E 6jEZjvbHPm/xAjPeQA5UbF/1RPr9HxfBFOQmGtp3rUM/oWjLsLjgaYnX0NPr34V8yToV BRJqwEmDE3goObNL0WipUQro7G1gDTboUWiuPjNcMZEjQ85D4IOQzxoB0Cb7t0fhAquO TMLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=oUxF2b4WKgUzih0SC0IktVZrnDr9sVA4+xZBrQT4vKY=; b=CQba31ZmuptYTG52XKnhaNxBeu8DMeUGoV6hWhyUsxym8B9GXzNkbYB0Ud29Y8lO0i TC9bW2wtxNiitAvrJr46X7D2Bcdlbjxr+MNpUBn0Maspsn9rs/tloEf02BUc0xs36RPr jjqQzr6/eToOENpRVIyLIa2Jr9PPTv8YZhNynjXPHoRFdjo3to0vhVAVKczmoc4N8o7Q sxfbj/0PKA0aYKjiMRFu2m7+VxVaYHkIZsnqf8Gm7OPsBAGA9+iR9FM4KBjU7AqLTiyE UMdtPYPUqOk9Xee3LcSvzDhsUsDfW1+7qG6XMhTrpBusOBuw2pUXyJuD0T1n4LL3qvY2 pLgA== X-Gm-Message-State: APjAAAXgRW23tcXAU8wa9S5nKGSHzypQ1T9JvoLmUjGYQOSSoZC5EfPy Mtl3xv6D5eFLaiBzI6pRkOE= X-Received: by 2002:a02:8c4d:: with SMTP id j13mr50886011jal.48.1554173515958; Mon, 01 Apr 2019 19:51:55 -0700 (PDT) Received: from ubu (2600-6c48-437f-c81d-984d-b4e8-0abe-7e26.dhcp6.chtrptr.net. [2600:6c48:437f:c81d:984d:b4e8:abe:7e26]) by smtp.gmail.com with ESMTPSA id 19sm6326579itm.6.2019.04.01.19.51.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Apr 2019 19:51:55 -0700 (PDT) Date: Mon, 1 Apr 2019 22:51:53 -0400 From: Kimberly Brown To: Greg Kroah-Hartman , "Rafael J. Wysocki" Cc: Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org Subject: [PATCH v2 7/8] cpufreq: schedutil: Replace default_attrs field with groups Message-ID: <18a50bab72e6bd326250b2bd5b5a4b414351815d.1554151487.git.kimbrownkd@gmail.com> References: <20190322201440.GA30814@ubu-Virtual-Machine> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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