Received: by 10.213.65.68 with SMTP id h4csp3581647imn; Tue, 10 Apr 2018 01:00:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx49yiY3UKxVtrWKdLAn2amTW7a4aCrLH11PzUaZnngGrPqCzDgqDMJXcGXGwRolP5A5YWMP/ X-Received: by 2002:a17:902:b7c7:: with SMTP id v7-v6mr12344334plz.190.1523347235308; Tue, 10 Apr 2018 01:00:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523347235; cv=none; d=google.com; s=arc-20160816; b=GAOy0OLfqNSz1oSKVHlcJSHw7hkAtI+CnAjVYTN3fR8+5NLwTGluT0yUVfQHyB8rFU w/Ra5YRy4kLK9EgZPcOAaugKenwzu7ZcI+AmQt7BxRkHvtFlCuEzTZLoazCVTSnYqqja YwAzMJ+4cD9C7YFbLjFcLS1AnXJbwPm0/Y85wRdcm9tueYOdxh64CAQ1vaCCHDFZDZZP lyMFuNLR4HDGUO6jx0TJhED4ybjOGX8YZbE+9eqJHJtM+cl0F0AHyY/RADvwfbFVXlWG XbUYhEDPg3+49J9+LQ8qVlMtfE3EV0Yjt1PFTtJt9uP7m8gMqQUCl2zPvH5vGcqaSfwn /xkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=oP23thrZsb2Se5Qa8MFvzULv8LPkWTxeN9nvdSUFUCk=; b=z4ivP8otwJoT7usGmsC0NPbOXKrWQeazyqFXsc6S43ql1Atj6QNFSYSEOiTfnb/Bzc IFLvEGTZ0BOPIdvPChGtv6V5dzkwXy0GmrpTUwNWvT+UX7KYJBSVYdrjYSFs0ZivVU01 aagvUHqukzgXCQ+UpZWzHDDdAXvpzSEbMbIJBv3VooN65nBp7QipIUATozuZlmr0Kg8n JQO6DodI3fGiEUSS1cVj5v+JyLgXHwoG5hSeANMQ38j3oJaLuy+qiNCmztz2ePy33f8c zwj5Lob37wsK+q7XhlacjttQ3CnHonDQFsmFG5yYLXxVYmxS6OmZ6szEcc49G5ne2X9A H81Q== 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 o1-v6si2046830pls.424.2018.04.10.00.59.58; Tue, 10 Apr 2018 01:00:35 -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 S1752286AbeDJH4L (ORCPT + 99 others); Tue, 10 Apr 2018 03:56:11 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:52750 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751778AbeDJH4J (ORCPT ); Tue, 10 Apr 2018 03:56:09 -0400 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1f5o85-0004Sr-2u; Tue, 10 Apr 2018 09:55:49 +0200 Date: Tue, 10 Apr 2018 09:55:48 +0200 (CEST) From: Thomas Gleixner To: yuankuiz@codeaurora.org cc: linux-pm@vger.kernel.org, rjw@rjwysocki.net, fweisbec@gmail.com, peterz@infradead.org, aulmck@linux.vnet.ibm.com, mingo@kernel.org, len.brown@intel.com, linux-kernel@vger.kernel.org Subject: Re: Subject: [PATCH] [PATCH] time: tick-sched: use bool for tick_stopped In-Reply-To: <891d4f632fbff5052e11f2d0b6fac35d@codeaurora.org> Message-ID: References: <891d4f632fbff5052e11f2d0b6fac35d@codeaurora.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 Apr 2018, yuankuiz@codeaurora.org wrote: > From: John Zhao > > Variable tick_stopped returned by tick_nohz_tick_stopped > can have only true / forse 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 int. The data type is not int. It's part of an integer bitfield and occupies exactly one bit of storage, while bool has an architecture dependend size and is at least 1 byte, i.e. 8 bit. So with alignment effects you grew the size of the data structure and therefore the cache foot print. This is not about 'nice to have' .... Thanks, tglx