Received: by 10.213.65.68 with SMTP id h4csp3627047imn; Tue, 10 Apr 2018 01:55:26 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+rIS0MhQifPmE5V8GjIpck4+d5jz4/cSScACqRxXrJISPRDILUbeJO4iPjlZc3GcgO5WOw X-Received: by 2002:a17:902:2941:: with SMTP id g59-v6mr42426727plb.55.1523350526777; Tue, 10 Apr 2018 01:55:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523350526; cv=none; d=google.com; s=arc-20160816; b=Ga1/e+Hj5JbdasL90L7hWYzEQt8FWpqnN5AhvXEWr2ghY0knhcFvCBxqQIPEL0s875 kNjLwRXWpl6LcYGrjJNSEgLZD7LpOE+H+hRKWHbRGb5dpbSXKZHg4zr0Bvq3ARM/PZcU 0CVXu9POqG5iyRf108aCxwRZBDyJhWX/V4FJhfsyetbFVWmLcO5UDJ5+uCyknEjv1iEh fYSZECo6zGl/pulC+ZAonuS/R6GrtqGep7r/G/Vhttcc4TDpHQXbfzthYRttHE+Whpbu PYz3ORhvKgp1a8JcQGvFD3p/nkUIVtw2O7Nfu+zXzu5tIuOistLT5034yo79k03Qsqet m/Kw== 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=eIOYSrWy0itfb21BgvpAo7JgQ7uvzuOo0vI1wKn9PjA=; b=dTf1XljOaHJtPEMAQlgqc7g8mTMbbLZjXr/i7vrwH9Ys+PYpbDDltFUllKyuhfiYmr 6+1gCpGusBbfj+w6K+n2ZjjJtcp6qIkQrEuY49l3zU0Bjv9F/H0NFFG4Ufub+hMI04hF SD+F/Pq90V+5bPceqCnXKXwyu5xivyPfGSKC2D2LPIo0DlrijxjcoAe/IanCYoGAd2EZ 5DSx4gb9+dkVmBHe9Y3RCr7NXhhqeQooooLu8VTi5pnBeLXTfGq+/hzM6Q20rttnbIsB 1+ckwvmZ73Y5PwbojhRmsZDzVK6bgZ0p7IdyOjdc6d4PIfIZ32sYenjJE/6rsMWY9RIo Uf1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=OL5nS1t3; dkim=pass header.i=@codeaurora.org header.s=default header.b=aInDko9R; 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 195si1472690pgd.520.2018.04.10.01.54.49; Tue, 10 Apr 2018 01:55:26 -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=OL5nS1t3; dkim=pass header.i=@codeaurora.org header.s=default header.b=aInDko9R; 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 S1752751AbeDJIvl (ORCPT + 99 others); Tue, 10 Apr 2018 04:51:41 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:37568 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752623AbeDJIvj (ORCPT ); Tue, 10 Apr 2018 04:51:39 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 87AAE60F5F; Tue, 10 Apr 2018 08:51:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523350298; bh=f8bW40qVjyAplki9u6P045b++eeMeFYFk3oChFDsPog=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=OL5nS1t3bML+6SxFMnWwI/NL/7nYgjk4mvps9s137mEzYyygwiLFw4wSaKoMJqpJK FC7c2TtkfLea4gqCjRwdZGY/9Q8b8eesAlFd3+M8WzW4OG5c7lho9TNLPDM5D5Bfb9 jVDcEpSp2ESKBeaSXtL4W/2z97ewJ9zfzwd3r3K4= 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 99E5360250; Tue, 10 Apr 2018 08:51:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523350297; bh=f8bW40qVjyAplki9u6P045b++eeMeFYFk3oChFDsPog=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=aInDko9RmkM6twPLb/qfk7L1CNXsbHlgr+9lGx9NfqwGx3eOP4la3pKshGmUswOEd gZAKygT4FUWqI8IKZPVQBd/7IHBfWRR+AsFSFRKxljQ6F8IHlWn/lXfQW9rgvJ4sOQ 50pecSUCwWT2Mo891ZXZHENghTO7x5rjeaPh1Iqc= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 10 Apr 2018 16:51:37 +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 Subject: [PATCH] time: tick-sched: use bool for tick_stopped In-Reply-To: <9ee70560651fefffcc61949d8a37315d@codeaurora.org> References: <891d4f632fbff5052e11f2d0b6fac35d@codeaurora.org> <9ee70560651fefffcc61949d8a37315d@codeaurora.org> Message-ID: 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 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;