Received: by 10.192.165.148 with SMTP id m20csp351388imm; Wed, 25 Apr 2018 00:03:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqYq1XBk0vfuI5rah7U1eQ5arYZLVLlj8QhSnBzkJcXfbBWvQ2HzNKZ5Pk2v9NFUn/JI2ZE X-Received: by 10.101.99.90 with SMTP id p26mr1974491pgv.163.1524639790254; Wed, 25 Apr 2018 00:03:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524639790; cv=none; d=google.com; s=arc-20160816; b=f6jxDjA2gK58nqOJJUammaQhOJM+PF0GvlbkSZwtp4UiRzYDfTfEagmJsYwVW7u0rb x3f6+ItWzw8CFNeBGLK0PTEv03l/i70k1Pl2zJjngrhyiPQpFWkbf1pD0dRz1KDgRDvc sNj6qxpbArqBoVo44mKsptRP4dzSxprcubHvDjrmWOugE4BQ7FUpG4fDom9/aFnqquCM zmuOQ7x2UYRWz/J31HoiRv3QBhfhmVFedT71yVFhdzLHFCQHwsuV0XF1dW+q7Se2yBX5 X4GMnYvAHY+RuEKVkqhewVpcdce9g3NkpmZKP21h15uKTR5rJw2JxjSeopHQPuDzPBmJ lBQA== 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=gv97hSEOw5Y80WKMIfZUg7V2+t7R3kTgVEyRW6Q7a6w=; b=pZlGpDrXHd48R7QVBXpNrw13I1sRaCCBp5kNd6BPPwaRhvKmI11dIlmpiYjRkkl6cN SrHr3fQXgXWzRlkdvcd94rxR9lvmIB31F+NX9zDduu8dYCl5eltAZ3YuYPYoBSIESVcZ PUOurGJe1nxWbN9u4n+VjxeO6widwag+ORgv26bIkfk5xLNu5fq9rzSvoN1tEMoWaYrz xOsbE8d5hJTewtwLJTK/r3y5nW4Yol6SoPuBZm/WdiZOv9l54Ltcu+CftS0jbb0wU8z7 XWcGDaUFDi4d70ZB2adRXe5ztVb8eCkqvWqCxR0LapRA6LKGTsJPeJjUFV6v+4gdz//x m5xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=LhGWu5Lt; dkim=pass header.i=@codeaurora.org header.s=default header.b=LhGWu5Lt; 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 y8-v6si16485589pli.242.2018.04.25.00.02.55; Wed, 25 Apr 2018 00:03:10 -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=LhGWu5Lt; dkim=pass header.i=@codeaurora.org header.s=default header.b=LhGWu5Lt; 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 S1751186AbeDYHBt (ORCPT + 99 others); Wed, 25 Apr 2018 03:01:49 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:57982 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750882AbeDYHBr (ORCPT ); Wed, 25 Apr 2018 03:01:47 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id EBD7260C64; Wed, 25 Apr 2018 07:01:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524639706; bh=X7MlcWRLveBEGlPrwJF1ToQpenOCrMWX3iOGTQCQLm4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=LhGWu5Lt55aFrcmr7HZU1v5HAwXmPq+AWTcD5MHtM3RlBW1qUE5T32AYHlLcenI5e WSrDnPh1ePXerfOS2B8eDLGSy2nyk91i/CXhbK+plWwf287+LwIuJ96lwPKxK9B07g 9AYa+8guKegQqZOhHFA7Gwj6W7XD+bW5bVyxIhdQ= 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 144E9607DD; Wed, 25 Apr 2018 07:01:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524639706; bh=X7MlcWRLveBEGlPrwJF1ToQpenOCrMWX3iOGTQCQLm4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=LhGWu5Lt55aFrcmr7HZU1v5HAwXmPq+AWTcD5MHtM3RlBW1qUE5T32AYHlLcenI5e WSrDnPh1ePXerfOS2B8eDLGSy2nyk91i/CXhbK+plWwf287+LwIuJ96lwPKxK9B07g 9AYa+8guKegQqZOhHFA7Gwj6W7XD+bW5bVyxIhdQ= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 25 Apr 2018 15:01:46 +0800 From: yuankuiz@codeaurora.org To: Joe Perches Cc: Thomas Gleixner , "Rafael J. Wysocki" , Linux PM , "Rafael J. Wysocki" , Frederic Weisbecker , Peter Zijlstra , Ingo Molnar , Len Brown , Linux Kernel Mailing List , linux-pm-owner@vger.kernel.org, akpm@linux-foundation.org Subject: Re: [PATCH] time: tick-sched: use bool for tick_stopped In-Reply-To: <9447358d3f7cda9032b24d62dd79dacfca73fc30.camel@perches.com> References: <891d4f632fbff5052e11f2d0b6fac35d@codeaurora.org> <2f7755fae34bb65ef0a4b5a11c67f431@codeaurora.org> <41aec3337f05316de118357fcbd9d175@codeaurora.org> <9447358d3f7cda9032b24d62dd79dacfca73fc30.camel@perches.com> Message-ID: <2c7c90722795ecfbe4e3e907f725549c@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 On 2018-04-21 03:24 AM, Joe Perches wrote: > On Fri, 2018-04-20 at 14:44 +0800, yuankuiz@codeaurora.org wrote: >> On 2018-04-20 09:47 AM, yuankuiz@codeaurora.org wrote: > [] >> > [ZJ] Further prototyping has been given based on gcc for both of >> > x86_64 and armv8-a, >> > unsigned int and bool share the same 1 bytes without the >> > addtional storage for sure. >> > Open this and welcome if any other difference behaviour could be >> > captured. >> >> [ZJ] Typo.. change 4 bytes above to 1 byte actually. > > Not really. > > unsigned int is 4 and bool is generally 1. > Alignment padding after a bool may exist. [ZJ] Depending on how to pack, the size was padded is variance. For example. In case of the "unsigned char" at the following, pack is happened and result 1 bytes.(if no more than 8 bits are used) In case of the "int" at the following, pack is happened but result 4 bytes. I mean, I demo it but use the 1# case due for another thread discussion on the ichx_desc() so move a little bit from the tick_sched struct.