Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3599922pxy; Mon, 26 Apr 2021 05:42:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynkDPVLE2oZSRD2m/jjOJUao7nAb6v0FMcnzDXCma/W9G2Kylls1kdcHoKqtSquLrO6GMx X-Received: by 2002:a17:90b:f87:: with SMTP id ft7mr21429904pjb.11.1619440921899; Mon, 26 Apr 2021 05:42:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619440921; cv=none; d=google.com; s=arc-20160816; b=e92ATVjx5K16LOPlPjpRfm+Qf3JGIYIdiAxY+FRkF0gCBPYSnl99heMh0s01zsBmxh 4oikLaUj3nINVVC+RuUXpBsOWXxGreOkxvExmy5ZVzj2WeSpnmZaYdAyU9zcntx6KFES 7PBfyvj9z0iSvmswqbt0Wr5cBsPcJ/8TfmSYVEsmb3nbQeSWuLyihLDFwjHNAwnPJbCh 0tS6K0nYVcfFjVJJCN9sk9oHaGdRNwoQjD0ipHXaQffVW1QAWVIaW6nbFWGDX9Mvsral hs1ZZW/tNEpTag0BuAi7I42+zGJUYnW6DVwXfUAGRA3g4y0jmudqNfrgn7uHUvIqI5fn RhQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TRdEA94ZdhMo/6RApbudBekxefiDgCx+6J5g2PdXH4M=; b=JR4WmTx1yKP2c8lc8yiFkgTZgOQYP4dKqWRb/y77xXFBh209sOjP6ovfrldQBXwwgM n4WNsUnrUGp3xPTtAo4KSdpGkjSwr7fStesBSupRwFrN3w+lU4kvkPRAI0IsjfRZnCQr xRhoR0qTOsj5VqlagSF/niFJ/ZxWE1vnLxq9u7YeOVM1tSIqNk4bg7BCVQ/QBVTZT4MC /Pro5D+4wikZIj7Qg0IfxQQVYxxRv7uNxXUJWu3CNWG6kFUFENDBpKUgXrMIMKj9Xp4u 3KUlaGU8heYCxn7lECwCnTLFK+c56P015d63nRyRgdsYCyB1zxEZBbwJUK04O5rzLWZf 1zGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=SXXQ7MEl; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g6si17274760pgg.244.2021.04.26.05.41.49; Mon, 26 Apr 2021 05:42:01 -0700 (PDT) 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=@infradead.org header.s=casper.20170209 header.b=SXXQ7MEl; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233494AbhDZMlH (ORCPT + 99 others); Mon, 26 Apr 2021 08:41:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233428AbhDZMlH (ORCPT ); Mon, 26 Apr 2021 08:41:07 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26AA3C061574 for ; Mon, 26 Apr 2021 05:40:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=TRdEA94ZdhMo/6RApbudBekxefiDgCx+6J5g2PdXH4M=; b=SXXQ7MEls1rxUUukRaqj5tuilg 20fQsDjwOrbxG42KiTS29OxS5UU3RpNUkDvFf8zA32XSgOLu9GJDD1U7S1Fn6IkMCbGQBPeiaff2U pXinHSUOtlB2v4FNiKPDJhL2M1jlNO8ESkwlZqsBCg+ptBOaz/L23+ClfhWqCoxTMRqugzAp4BnSP /3XN5vaTAHvcAraktb5rglgGEA4x18usHb7GwHyvgXviblBUN/obXqFbuPN3+ujcj89XgG9JnNn0d 4a9WBr3r5D0nQquv7h8Z/LfySY1W5jDxbAGskgHpSV3+QXEsIOUJANlsgiOts85WAQgRe2g03vQIT sfpCwxMw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lb0X3-005c5S-OU; Mon, 26 Apr 2021 12:40:11 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 58C473001D0; Mon, 26 Apr 2021 14:40:09 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 3E7B62D1F890B; Mon, 26 Apr 2021 14:40:09 +0200 (CEST) Date: Mon, 26 Apr 2021 14:40:09 +0200 From: Peter Zijlstra To: Thomas Gleixner Cc: Lorenzo Colitti , Greg KH , Maciej =?utf-8?Q?=C5=BBenczykowski?= , Ingo Molnar , Anna-Maria Behnsen , lkml , mikael.beckius@windriver.com, Maciej =?utf-8?Q?=C5=BBenczykowski?= , Will Deacon Subject: Re: [PATCH] hrtimer: Avoid double reprogramming in __hrtimer_start_range_ns() Message-ID: References: <87r1jbv6jc.ffs@nanos.tec.linutronix.de> <87eef5qbrx.ffs@nanos.tec.linutronix.de> <87v989topu.ffs@nanos.tec.linutronix.de> <87sg3dtedf.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87sg3dtedf.ffs@nanos.tec.linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 26, 2021 at 02:33:00PM +0200, Thomas Gleixner wrote: > >> + force_local = base->cpu_base == this_cpu_ptr(&hrtimer_bases); > >> + force_local &= base->cpu_base->next_timer == timer; > > > > Using bitwise ops on a bool is cute and all, but isn't that more > > readable when written like: > > > > force_local = base->cpu_base == this_cpu_ptr(&hrtimer_bases) && > > base->cpu_base->next_timer == timer; > > > > Which results in an extra conditional branch. Srlsy, compiler not smart enough?