From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3D12C433E4 for ; Tue, 21 Jul 2020 16:11:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C85692073A for ; Tue, 21 Jul 2020 16:11:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="aRw2ALnF"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="/0DT7ZMf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730178AbgGUQLC (ORCPT ); Tue, 21 Jul 2020 12:11:02 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:41466 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726646AbgGUQK7 (ORCPT ); Tue, 21 Jul 2020 12:10:59 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1595347857; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=M/KAUo+uAjWl+Ba5IjjGVnrTcFQJlY6tDNdMp29EqOI=; b=aRw2ALnFru0qOh3a8FxPYzhVUAakvk1OO+HNFnA9PYXdK6JA3CaajJOmtW4+tXjuk3iy4X Ob1SoCTFE4n3cev82ds7Z9hCDVQerrpBXykV3hBlZdqfRd14fspjAUoRMMbvGPiqaEV9B7 3MxXIRMRPs3HHmT0H4OVc/rwkjX5rkK2Ant7xKXlPMMUHb6HJ3zIqUhWP15po7DFSPobX+ D9cLp2npVkPd3iY3LRMRO74j+83Mf3oTckeOe9Ap14cbBalb1zhDoWGd+CjdGOizo1WoYZ VROeVcHXneLKqhud8o0IOyVoN1Hx8sSKYbJeWv6eMbaZ+ctAyxbfVeP+vHZjnQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1595347857; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=M/KAUo+uAjWl+Ba5IjjGVnrTcFQJlY6tDNdMp29EqOI=; b=/0DT7ZMf4UKIjWKCIwCWFehA2PV7BKQEZE+O3lbmL9YHliYl7w7vfIHmwXPVqqfzU/lSz7 ptzsXKXMOxcCYGBA== To: Frederic Weisbecker Cc: LKML , x86@kernel.org, Oleg Nesterov , "Eric W. Biederman" , John Stultz , Paolo Bonzini Subject: Re: [patch V2 2/5] posix-cpu-timers: Convert the flags to a bitmap In-Reply-To: <20200721123452.GA9290@lenoir> References: <20200716201923.228696399@linutronix.de> <20200716202044.625081169@linutronix.de> <20200721123452.GA9290@lenoir> Date: Tue, 21 Jul 2020 18:10:56 +0200 Message-ID: <874kq04zn3.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Frederic Weisbecker writes: > On Thu, Jul 16, 2020 at 10:19:25PM +0200, Thomas Gleixner wrote: >> --- a/kernel/time/posix-cpu-timers.c >> +++ b/kernel/time/posix-cpu-timers.c >> @@ -25,7 +25,7 @@ void posix_cputimers_group_init(struct p >> posix_cputimers_init(pct); >> if (cpu_limit != RLIM_INFINITY) { >> pct->bases[CPUCLOCK_PROF].nextevt = cpu_limit * NSEC_PER_SEC; >> - pct->timers_active = true; >> + set_bit(CPUTIMERS_ACTIVE, &pct->flags); > > I guess this one could be __set_bit(). True :)