Received: by 10.213.65.68 with SMTP id h4csp3842026imn; Tue, 10 Apr 2018 05:37:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+sso2B4dYHRqUjlQYogDEwuCw/EPRFB9MKg8S3GCaRy1RkXvNVTzj7cvM5w+13oBG5qT9/ X-Received: by 2002:a17:902:6c07:: with SMTP id q7-v6mr250400plk.67.1523363876766; Tue, 10 Apr 2018 05:37:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523363876; cv=none; d=google.com; s=arc-20160816; b=SGYZQ/9jZvcH18lq2y0ejSdPXRFAeFFVU3YuOAYVTaqO0fFavzvwcFbhulwdCqA1ou JbEk6LbLy5TcCvS+MhQ8lJjgjzONfPtegkBm/ri8AAgqKxlAtVQmWHwCSDnk/YvuYS0Y iZGtx29iUBnmYOXT1OyaQE4ykEY0H+m93lHqSE1iYIBepSrJVFg4bY/bx0rfkiO3G5tb KRtyIiz7eWfB6XrBi4zp4WmP5X1SJy2xZBXCMhMz0EnTUWZpwYKH0rxV4Q47Nb6BEhSD VGKNyGydFVmd0rcsX78ls/MLMSLXBEJ161lC1D8/ML5CRu3ItgiRDX9I6vluDVqU76Jt JYGQ== 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:arc-authentication-results; bh=fM7H2oby4/WrplTAZ3ZBTPG0Lj4tmJZ6LQ4/vGxMWo8=; b=sFzIwBc0Aa6lN32WqPOYfqQ5qjgCwiPdvrDB+/mTYRaLggD8bYuknyp++JuDTlkNUp CbyZxtA8ZI6iYuAk3zHZ79khKduNS2BrF0h6+Bqn6KTrSL7bcwMWXVNwr6pfmWlcJvtH /8jEomhLxE9G0EqYUfFLOCUmCUFLaFlrXNM35wbpKoA+jBc1TDYUk7WCWpaeesFlQFm8 tv70CIoVGOFShtlrJl3jbiNUoBCjZmnq0V5Jnv7ZaCEMxoEg9hnpScmGOkXpvCVH7RI3 1Ka/eRVSndsPw9aN4KEFLYMynwEosC1/3Mv4GzPVTQG3kQ5q4oR4Tw9q6z5WIxujGxDO US3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jgo7myJT; 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 92-v6si2535909plw.229.2018.04.10.05.37.19; Tue, 10 Apr 2018 05:37:56 -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=bombadil.20170209 header.b=jgo7myJT; 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 S1753069AbeDJMdS (ORCPT + 99 others); Tue, 10 Apr 2018 08:33:18 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:55546 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753205AbeDJMdO (ORCPT ); Tue, 10 Apr 2018 08:33:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=fM7H2oby4/WrplTAZ3ZBTPG0Lj4tmJZ6LQ4/vGxMWo8=; b=jgo7myJTGUwgdP9ju6S37rFpT w83oKqyzP35LkJxhvFFU+cwg08Us5Ih4MSO+49gdCgA8ZCaQ3kNdjKhTXDMzmL6nLZ6Cyrb+qOJJM iH3Pc73g4DJ06asjs0ZHqv2R5A33U49iXtePcTbHTqKbcx5gBeCUFZwbVJh5YD30AGz8toDhx2nRg cBh13gaeC6+1t/flRFk+CELgCXEYW9A3R0ybZFtjJWzXd86d7S7lbbfTAodDXTHKuw0qOkPnAFgKm ZbyQN1WS8af3g5/pUbRhS+834EmxKMe0mjOc8LD1gtcriUhdkuyJ9ni/8+cmNEIznNoJ0NfpE22Ro rMkxJyqvA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1f5sSR-0004AP-F4; Tue, 10 Apr 2018 12:33:07 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 019A92029B0F8; Tue, 10 Apr 2018 14:33:05 +0200 (CEST) Date: Tue, 10 Apr 2018 14:33:05 +0200 From: Peter Zijlstra To: "Rafael J. Wysocki" Cc: yuankuiz@codeaurora.org, Linux PM , "Rafael J. Wysocki" , Frederic Weisbecker , Thomas Gleixner , aulmck@linux.vnet.ibm.com, Ingo Molnar , Len Brown , Linux Kernel Mailing List , apw@canonical.com, joe@perches.com Subject: Re: Subject: [PATCH] [PATCH] time: tick-sched: use bool for tick_stopped Message-ID: <20180410123305.GF4082@hirez.programming.kicks-ass.net> References: <891d4f632fbff5052e11f2d0b6fac35d@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 10, 2018 at 10:00:01AM +0200, Rafael J. Wysocki wrote: > On Tue, Apr 10, 2018 at 9:33 AM, wrote: > > +++ 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; > > I don't think this is a good idea at all. > > Please see https://lkml.org/lkml/2017/11/21/384 for example. Joe, apw, could we get Checkpatch to whinge about _Bool in composite types? That should immediately also disqualify using it as the base type of bitfields.