Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1173429pxb; Thu, 4 Mar 2021 05:21:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxokftuDx9G17enbnNiVz5JmCAZM1RiTUiYlfak1AR4K6fwn+rubODfgLx7u33Zs4fDhjnm X-Received: by 2002:a17:906:5797:: with SMTP id k23mr4258610ejq.515.1614864114725; Thu, 04 Mar 2021 05:21:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614864114; cv=none; d=google.com; s=arc-20160816; b=UtuIUCPqzdbYVwsIB/+0meBqq2z4t++UWY2o5/65eKmu7BoRWIypR1aod7wJmKf5Fs KbxPKsqfYYiiFQwsuHdE8SCRb0QQ5vUSC6N0QVAkmDXc14ltZx/FO+Z3m2YUHCw0G99b qnZc+J6Y66zJHqaUwv0TZnCKAsx8LXs2xdxN5R8Vbn/DesIwaMVg7nGPA8cq07xGGjzZ FWuXZHYEWNNYWFz8jLZ1qPUr9brFYF6zHi312RTBwm9gf+9NqpB2U05xIkZXivBV7QeW sgJlM68Y27QOmLHWyrBp+ldEZPqa1ZInLDgoSrvarfhfv2G4/gQqlxi5dzT0vNLHOiqJ PDiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lQvMooYXTqFSXvQJbwHhwZB/VRpYE9wlYhCe9YGfbL8=; b=r/Rri++u0RFsBbLRa/s3yRKYuBQ9PkF8WCRQ63xphuw1oX06j59ZE13YtVHOBjacEY LIrSeERMu91BITPLDfRob6WmYSKjBn+opR0TVomuXtqV7InMFJEDObdb9/nQy0EWldaO XoRueEWTqvQ40cHtGcuIKAdQYna9QPJiRIm3BImTSREuvg52YNKuovZEgBbFAPWQ/zYc qfzFQQ7/0Z1aO3BqsUFM+TyEtYjQTdAC1j2q53iIn9+xCVefBKo7FSQJJI/WvYntZlJ/ +SSyf6P+sN4gkLmX+LpjxrBetDIw2B9J81xIElkYp58wX8Tqtpn6hBHQAATihI5yXFcl bI5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Dt0X3mUQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d20si2993215eds.530.2021.03.04.05.21.29; Thu, 04 Mar 2021 05:21:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Dt0X3mUQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354503AbhCDAJ0 (ORCPT + 99 others); Wed, 3 Mar 2021 19:09:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230215AbhCCWLf (ORCPT ); Wed, 3 Mar 2021 17:11:35 -0500 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EAADC0613D8 for ; Wed, 3 Mar 2021 13:59:14 -0800 (PST) Received: by mail-qt1-x82a.google.com with SMTP id j3so3168262qtj.12 for ; Wed, 03 Mar 2021 13:59:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lQvMooYXTqFSXvQJbwHhwZB/VRpYE9wlYhCe9YGfbL8=; b=Dt0X3mUQd/DUkNeuvAMV/W3X95HyHC/aM6ZOqeylnVIOQ2d/HZgPp07QkFrKNMFmZI I+May3xRHjkE8CvywD5YUBeiAgtaxogu4JyKD9wbdaAWYbzMI6Hd5ai9mgieMsLX9En1 nQWo7cUP33IFgH9TKlIyFS5eBILD2HDrz+YX9Vpt8Nwah1e447SW96G1gg5yptJwmbBv eDqvY9hijk5zPfBUYwZ1qQsJ8wJ1RHwpS0scc1LGpdCoM1ctja0dq1DCjQsT2Nhw2veO 9cj8v7LD6DUqDULb+runiba0Wx28zMY+tN8y2d1RPuCAOe6nycPkp/R7KNsM/qiA+4Kk QxhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lQvMooYXTqFSXvQJbwHhwZB/VRpYE9wlYhCe9YGfbL8=; b=ZA0MzP5r2wZkbKqSDzvy2KzDmBbH7Zt/8ameV9+fO6XVddEkVYoAt7+rn5oHvojyOZ hHn++yHRa1vfE5nz7LV0xgiAXY47VbLzfCfcYsH7ddanQ/mQoYfinF4I5GJGsBDYL95E HcGtNjmbE5KG/kDwYnQziAs69NfNDwZ4+Alzlu5LyAUNwjPnrbUGw1zOO9gWAid6IiyA f0P/eiSmZZsuZwwzeKsSHDWDvuGNAZIzgXXlfySmgQzNu/1Qr1R88up+1VwQ/bxMkR8L RA/YjKZHg3j/nkfINez6kzSqr6mdwqtUS8M61IAObUhG3rJfv6Urj/WCh+1Wv5GLC7J2 pLVA== X-Gm-Message-State: AOAM5311coDwRbGxHPRkZpwfRtv1xFAW0dEVMX74r9kAZ1XKBnGw5+ye hf5tfkfRTdMG9GDXVjMZjuVdJOmymDyLGApURhLS5Q== X-Received: by 2002:ac8:4e8f:: with SMTP id 15mr1299223qtp.317.1614808753179; Wed, 03 Mar 2021 13:59:13 -0800 (PST) MIME-Version: 1.0 References: <20210226195239.3905966-1-joshdon@google.com> In-Reply-To: From: Josh Don Date: Wed, 3 Mar 2021 13:59:02 -0800 Message-ID: Subject: Re: [PATCH] sched: Optimize __calc_delta. To: Peter Zijlstra Cc: Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , linux-kernel , Clement Courbet , Oleg Rombakh Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > you made fact_hi u32, why can't we unconditionally use fls() ? Thanks for clarifying with ILP32; will remove this macro and simplify to just fls().