Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp938176lqb; Wed, 17 Apr 2024 15:50:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVHvdA+kuKzC8wV4zUFt+m/kSYjAiszsm7AS5H5Pr9CvPKm6NuSSc3J1ir7ZdcMoRUl/7AgrBG9EoYdyyQMUKcQ1uK4vQgxRYNR8dh12Q== X-Google-Smtp-Source: AGHT+IGELykFoGBI70yebTZjbJsCtqNp27tWGa27sTzVzu/A1HlKXKOx63tyaT7sXp+Hs+nwIG3a X-Received: by 2002:ad4:57c2:0:b0:69b:47da:ab72 with SMTP id y2-20020ad457c2000000b0069b47daab72mr817147qvx.35.1713394243984; Wed, 17 Apr 2024 15:50:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713394243; cv=pass; d=google.com; s=arc-20160816; b=BX78NnbTuNB3QBJYEHz+rolNmkpUH2149PA5YoL6+6rRGX9GSMuKbX0kSjgi3mzzf8 P8ocMHsse5xNN9UT/kstrDK7BnMPIk/7ZkOs85Y3L4prcu2PvFS3DoQwr1JHEVYiSM9c dzu97Kj21jOODUZVgyVB9aQT/X7OsvMbGxH0CZk+070cOkfmNL81cO0MQOTahluIGp1q 0/NKv59JKNJVTGsKAQuRlqxA9EAUoyZwDu4k9aYAcQM789pVqhkPa5RvKMdO8ShVYyPf teZympfbqP7BrOQAkeaubtgOZWc9fdYm1gFo6tb/f9RdK3EdeMqtAu6D4QxOh1MnbB6d CT1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LvBHkNpb8Z1Tcl5+l6pW+T32/tx5/zt1YOLgCLe6NbU=; fh=QOUZCYc62iDiwtosvzrxKEygH1QGT5eEr4TokP/EdL0=; b=BjUAQUAyi5Z3/B6h8T/SchNbR87o43OrVWexn2OR+oJgXLMJhVmUl05CcR2Cqq4Hqq upiClgr7l2ImSYlyE+akKkZPAnIH/1Jvz7mDy9YZQXxuCkJNc0YzNKbCokBxv/QXsFQ1 9mpG8vUpAlep08c7w/I3SXU6b0lNb9E700Ykv38klCRWU1lpCNkJqTq0UMj7U/OKLRpi q+UHUf+XS6mCpHFaQXgzvxua/DBmbZ8gsV6GyR0g56G5tCMOVFClKPEvIfhqHZdTtOqq nFm2dY2BWVTKMrccYoRQAsFxcbMs7sm6JLVUFAQQ4gEhd2G/xHskjnuAxqEYtRQx6cBj TowQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gWxMOwye; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-149293-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id iw11-20020a0562140f2b00b0069b3622a7e1si231182qvb.123.2024.04.17.15.50.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 15:50:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149293-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gWxMOwye; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-149293-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B3ED51C21547 for ; Wed, 17 Apr 2024 22:50:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70D8D83CAE; Wed, 17 Apr 2024 22:50:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gWxMOwye" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 964E18172F for ; Wed, 17 Apr 2024 22:50:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713394238; cv=none; b=qvI/85XJNGo6vgCObl6Uf4XNF00ISHgmHV0NZ9/9ZST21cQWjbrXh7YKTntdJT8njEzTaah4w+hLHSZ50FqwMGeJu9nODBQO1mp4MbNgBdM+o4ifvzhZ1DKInExPbz6KKXk/I2KXvbB56cOPFHvQNqo5yXrv8y1QBy05ExDTv+U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713394238; c=relaxed/simple; bh=ctEO9HzoI/WqLYY4Pdx9Tvx1u89nhwwmg6io0AotnrQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=I8J69n7Qh9QOZT8k+E+7k7bfrh7WpyaoKQ2HwT1mzcVM9h+B5aBqyWZBL6r6duc+NT+KEz3cs+f1AH7ifKBfHFZKoIgtnJDXcIUBv31RAm1Kr3EsyqlBZ1hqnevn4IM4C0kSns89bY68/xcff7n6gtq7+/4NNJWBF2IckKZVBZ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gWxMOwye; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19EA2C116B1; Wed, 17 Apr 2024 22:50:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713394238; bh=ctEO9HzoI/WqLYY4Pdx9Tvx1u89nhwwmg6io0AotnrQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gWxMOwye4/PxEWBUvLrBlrL2Fh2P92hza+Nq4e2/fZAj4v0xhYq4XYNrgBA2GPIz7 wOPFmpvaLIbX9G3Vns+WgarT0nWP9JU2MniguAGun7YuuwLv77V72Zu+Dfmxwjv+fz vZDEzKYZIP3yfy7nWDgqlCiPG8iWPj2/0Zk0A4ApOFFFxk3Sn50/wu7+RC9yRaLRm2 XOLuaWTEvPamIyC+1JRaw67DhShX5blq7Rt7aUHXtKFlbkqYOIkJhfnekfxdx3YlPx gJtfLxwrg8RaQWxyppU5OxHeGhzq2OgisgD/QIN+7XGyv1uqBLeb2Kb9tBhSUAYJHT VvVn1kMBYC5WQ== Date: Thu, 18 Apr 2024 00:50:35 +0200 From: Frederic Weisbecker To: Thomas Gleixner Cc: LKML , Anna-Maria Behnsen , John Stultz , Peter Zijlstra , Ingo Molnar , Stephen Boyd , Eric Biederman , Oleg Nesterov Subject: Re: [patch V2 09/50] posix-cpu-timers: Handle interval timers correctly in timer_get() Message-ID: References: <20240410164558.316665885@linutronix.de> <20240410165551.507566619@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240410165551.507566619@linutronix.de> Le Thu, Apr 11, 2024 at 12:46:27AM +0200, Thomas Gleixner a ?crit : > timer_gettime() must return the remaining time to the next expiry of a > timer or 0 if the timer is not armed and no signal pending, but posix CPU > timers fail to forward a timer which is already expired. > > Add the required logic to address that. > > Signed-off-by: Thomas Gleixner Reviewed-by: Frederic Weisbecker