Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3085328imc; Wed, 13 Mar 2019 08:29:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQJb9k9ClA6rIIFyUvH4YXzCF9X4Xvj2uS1gg3WI+BTSfJyJHkFBH+mrQNrc3+5aeLH21a X-Received: by 2002:a63:e80d:: with SMTP id s13mr11724109pgh.379.1552490959751; Wed, 13 Mar 2019 08:29:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552490959; cv=none; d=google.com; s=arc-20160816; b=hrkrLoxfoiJBFFuxeaj5B/6c7egsgh+nQUP3HNgyMayhr6lAUExrJjtof/QZLHqlBY NeQ2FewU6dh9SpWzGJv2BBiMsfMxeJWcG4O1fUqab+ef7uVd/pRchgM9Wc9aDO46Mmzm QBpYZQ/1oHQeeJ8PV/BxN05zPGb/w9x5Wugsf/5Pmj4R29vnh9IhqsnM6b4ucTVhj0jk aVIONPdINLswyP4X4xnf/t17xmdWo+7+2Yiw9RAV7MAtr6u1eRInRpC/YsZAe4OcyvKO 9E+rcmzfkThoNWqQO/+GD/DR1xJ/nl0KfUnSvcgM6DBRx7z6qbkQt8rD6wogR0ZitO9v 7TTg== 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=agdq5ItIVao91KgvUOSPgkw7UOfErslV9Ybz6MC1Dqc=; b=VgAyeWK4paE0kvO/N0tiW5dq7lzqsHCY6rRWeYes1eAeMxTCVW6Dr4aWhVDJ2S1g7Q mH+9qVjrvGQP+gTRPiRURBKR6q0FCu4GbZcZinK4p5ntMSxC/hRrMLSmgmi5nnnVU+dV whIz5NEsWPWFWF7R26B3wToWMuYIBS0/hW9cDpuibIj2qfMJV4VMdEIRq1AjhAdQ19bW ykKqQRqRTWStqiabglppXO8kDJGAYNHvxwNgUWlHTvbrlD4Zomn7MAH5m02OZrnmP3vg OHiBSalavxiCx+ibrU0h0yLQl80lcVyAraOrH06ToqWpcRlHF7YbSvXTB1U58d11Jrbi UYwQ== 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 w14si7619314plq.262.2019.03.13.08.28.59; Wed, 13 Mar 2019 08:29:19 -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 S1726444AbfCMP2i (ORCPT + 99 others); Wed, 13 Mar 2019 11:28:38 -0400 Received: from foss.arm.com ([217.140.101.70]:59196 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725868AbfCMP2i (ORCPT ); Wed, 13 Mar 2019 11:28:38 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6F41A80D; Wed, 13 Mar 2019 08:28:37 -0700 (PDT) Received: from e110439-lin (e110439-lin.cambridge.arm.com [10.1.194.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7A8533F71D; Wed, 13 Mar 2019 08:28:34 -0700 (PDT) Date: Wed, 13 Mar 2019 15:28:31 +0000 From: Patrick Bellasi To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-api@vger.kernel.org, Ingo Molnar , Tejun Heo , "Rafael J . Wysocki" , Vincent Guittot , Viresh Kumar , Paul Turner , Quentin Perret , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Todd Kjos , Joel Fernandes , Steve Muckle , Suren Baghdasaryan Subject: Re: [PATCH v7 01/15] sched/core: uclamp: Add CPU's clamp buckets refcounting Message-ID: <20190313152831.aqkvdrdoffiyu5pp@e110439-lin> References: <20190208100554.32196-1-patrick.bellasi@arm.com> <20190208100554.32196-2-patrick.bellasi@arm.com> <20190313140603.GD5922@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190313140603.GD5922@hirez.programming.kicks-ass.net> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13-Mar 15:06, Peter Zijlstra wrote: > On Fri, Feb 08, 2019 at 10:05:40AM +0000, Patrick Bellasi wrote: > > +static void __init init_uclamp(void) > > +{ > > + unsigned int clamp_id; > > + int cpu; > > + > > + for_each_possible_cpu(cpu) > > + memset(&cpu_rq(cpu)->uclamp, 0, sizeof(struct uclamp_rq)); > > + > > Is that really needed? Doesn't rq come from .bss ? Will check better... I've just assumed not since in sched_init() we already have tons of rq's related zero initializations. -- #include Patrick Bellasi