Received: by 10.213.65.68 with SMTP id h4csp3629071imn; Tue, 10 Apr 2018 01:58:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx49xVJ76286/0YJ9qTb25lYgU6f952NGTI5ebt+oFKcjbQMe6Pw0YH+Ilbq34XCe+IyYHsW7 X-Received: by 10.99.124.8 with SMTP id x8mr27863766pgc.37.1523350687138; Tue, 10 Apr 2018 01:58:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523350687; cv=none; d=google.com; s=arc-20160816; b=orVu14oY3xbQ3Qpi+FwhxeomoSfslW3AlAl27/+1yt1FHREgffRLnK6Owb1DbrfGSz FMKx2NMNbWQTTJ3ATqQvzIk+etctRS+W4vMdaKf7WzJ5CN1y3oZZOYKpP6/CGd8rUmnf KM86c2wj9YNESHR0vOJDk6qk29k1h5X817Ko6YAouGLKOCPEWKP0CBfJ6EMCgFjItR+v 5BT3pf8icgA2l0g8Uek+juu8gn/fN63/1rOo2J5sV0DNCTCI+SHNmq+q2izk9jQzfac7 bAngVtWIbZJwN10/Pcmqw7BMUV5PRtJqinuUpYPfAB5eUd5cW9AaAhdpSKg7Upk7ZNPz F+YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=JTHWNS0emc3Zmvz6gEWdG+49b5QmXgE1T2kVK2QUEbQ=; b=pC8q9bhJa55OzzbXcQHl2iNa6Wdw4xUsDgjlHMgp05rTZB4F9iLmrmUNgwLOnSMCuU iWeKnp/uXO8fp0DWeptu/zx6/RbL5njO2I7niDbtIEvShchIMDUYRClIZiuu4PRRIMBI AhA3hoVYE8fz57AS4bqmnyf540bEojp8o7hGs1+NTpZfQ0/NkExHVVrwS3TEMBUDV1nn AYFsXVcZT802XQWpzPHSoh+KQXnTBk8IyXipp/W6zGKi7JRLHRrooYXq0GuX3vyV7srz FiJQDAa9zWxHMOf19kkh0uSDiHjyLc3zWkApbGO38bt4hJjaEoK96WMYHsAUCpCdw+YM vuCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=iFkPsR+s; dkim=pass header.i=@codeaurora.org header.s=default header.b=k6jdjgUH; 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 f187si1480087pgc.459.2018.04.10.01.57.30; Tue, 10 Apr 2018 01:58:07 -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=@codeaurora.org header.s=default header.b=iFkPsR+s; dkim=pass header.i=@codeaurora.org header.s=default header.b=k6jdjgUH; 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 S1752490AbeDJIyw (ORCPT + 99 others); Tue, 10 Apr 2018 04:54:52 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:41182 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752064AbeDJIyu (ORCPT ); Tue, 10 Apr 2018 04:54:50 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 1208160F5F; Tue, 10 Apr 2018 08:54:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523350490; bh=0w94MnCxHx2IgAoYm9trcoZA/fZwYysFf+nas33KlIY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=iFkPsR+sXOiqEa9uir2zNC0kenn+gkUpFfSwrIcjoXA6h5qdON4RNLxVygcwOmK8a 4vHDxsBdCpllr9ea+0i/9Sjvem1aSzF7fVND5WTwnlhb3pZ31zjq0Ux2xckciHYxM6 3G3+L1m1gsCi8o1mA7U7uQGl8J+hMyacjnUrWo4k= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 3A56060AFB; Tue, 10 Apr 2018 08:54:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523350489; bh=0w94MnCxHx2IgAoYm9trcoZA/fZwYysFf+nas33KlIY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=k6jdjgUHfFygK5QVDGPX0FE96Bq1lAlFQsLL4Ljd7H5T9PUL3mN9AuZqt3jH0slni NaVye4WVOSF0x/bAWRRp1MMQ61vPJv19GgXX6h8NHgxulVs276qv+uQ5p2VqVYCHCE yZFdQg9wqOWit24FfPhsj6LMxAORg40qYkN5wkrc= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 10 Apr 2018 16:54:49 +0800 From: yuankuiz@codeaurora.org To: linux-pm@vger.kernel.org Cc: rjw@rjwysocki.net, fweisbec@gmail.com, peterz@infradead.org, tglx@linutronix.de, mingo@kernel.org, len.brown@intel.com, linux-kernel@vger.kernel.org, linux-pm-owner@vger.kernel.org Subject: Re: [PATCH] time: tick-sched: use bool for tick_stopped In-Reply-To: References: <891d4f632fbff5052e11f2d0b6fac35d@codeaurora.org> <9ee70560651fefffcc61949d8a37315d@codeaurora.org> Message-ID: <2ff99a214053551fc28c9024322306eb@codeaurora.org> X-Sender: yuankuiz@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Subject and commit message have been updated due for typo. This patch is based on the tip of linux-pm-cpuild branch. Thanks On 2018-04-10 04:51 PM, yuankuiz@codeaurora.org wrote: > From: John Zhao > > Variable tick_stopped returned by tick_nohz_tick_stopped > can only be true / false values. Since the return type > of the tick_nohz_tick_stopped is also bool, variable > tick_stopped nice to have data type as 'bool' in place of > the 'unsigned int'. > Moreover, the executed instructions cost could be minimal > without potiential data type conversion. > > Signed-off-by: John Zhao > --- > kernel/time/tick-sched.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/time/tick-sched.h b/kernel/time/tick-sched.h > index 6de959a..4d34309 100644 > --- a/kernel/time/tick-sched.h > +++ b/kernel/time/tick-sched.h > @@ -48,8 +48,8 @@ struct tick_sched { > unsigned long check_clocks; > enum tick_nohz_mode nohz_mode; > > + bool tick_stopped : 1; > unsigned int inidle : 1; > - unsigned int tick_stopped : 1; > unsigned int idle_active : 1; > unsigned int do_timer_last : 1; > unsigned int got_idle_tick : 1;