From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756867AbcH2Izu (ORCPT ); Mon, 29 Aug 2016 04:55:50 -0400 Received: from mga14.intel.com ([192.55.52.115]:62475 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756792AbcH2Izt (ORCPT ); Mon, 29 Aug 2016 04:55:49 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,595,1464678000"; d="scan'208";a="872117426" Date: Mon, 29 Aug 2016 09:00:59 +0800 From: Yuyang Du To: Vincent Guittot Cc: Peter Zijlstra , Ingo Molnar , linux-kernel , Benjamin Segall , Paul Turner , Morten Rasmussen , Dietmar Eggemann , Matt Fleming , Mike Galbraith Subject: Re: [PATCH v1 07/10] sched/fair: Remove useless 64-bit to 32-bit variable conversion Message-ID: <20160829010059.GG3273@intel.com> References: <1470788095-2125-1-git-send-email-yuyang.du@intel.com> <1470788095-2125-8-git-send-email-yuyang.du@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 25, 2016 at 09:11:56AM +0200, Vincent Guittot wrote: > On 10 August 2016 at 02:14, Yuyang Du wrote: > > In __decay_sum(), the 64-bit to 32-bit variable conversion makes no > > performance nor correctness use. > > Are you sure that there is no impact on 32bits system ? > Even this will be mainly shift manipulation > Honestly, I didn't consider 32-bit system at all, :( And after all, it's 64-bit shift 32-bit vs. 64-bit shift 64-bit operations. I'm not an expert, but I intend to believe they are about the same, because the arithmetic overhead seems to lie in the left part of the shift operation, both of which are 64-bit (correct me if I'm wrong).