Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26922C05027 for ; Sat, 11 Feb 2023 01:18:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229881AbjBKBSj (ORCPT ); Fri, 10 Feb 2023 20:18:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjBKBSh (ORCPT ); Fri, 10 Feb 2023 20:18:37 -0500 Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 342333A08D for ; Fri, 10 Feb 2023 17:18:36 -0800 (PST) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-52ecd867d89so43067957b3.8 for ; Fri, 10 Feb 2023 17:18:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=cp2zIBbIpvXAM7Zj4Wg0jFyWUO1R0STE0dCNXKFyBY4=; b=AELaoNaTADorAiw+/Zz9py1vM8XiJQuku5iNqK6EosG6jV2SGVk0PQPEyYLgtzjy63 Kiv1zMwLkvvwExoFz3QfYzCTCfNQr3XB2G5E4tsDfCyFh8Todn0lZs+ZKACVgC6Uqo4E 2vapFN3R9BgKr2ekNd99ryKlPqvy+lMNo7kQ8TsyLXDNX21suN/FRH7Vlq1EU9HdliDV CwM/vZS2W0bJgackJ6I6VILwPPXUWmek4YonUmROzRLojSpMCvwodLRVs8yOX1a1fT/r 2BvNW+VMIWRUzipzsh53iLe+fIXZFgCTlo2YBtMVHHUxCINVjxVf4mdbOc4pn8TaNn8g kuZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cp2zIBbIpvXAM7Zj4Wg0jFyWUO1R0STE0dCNXKFyBY4=; b=PGGfyVQq4aKOgPpHefECHKp9A6SWx+TQiTNWr0OXq3OZtwHiZkrt5Y4TkQYYJPSzL4 f9scEyNBX7v7Ct0XTwXzoHxu7jWtpC7RHuKOzrP35sI8vS02G48gQ6CN773ra3hYZvbG LZpL2rsKjvjT3ydYzLCJObQFn1U+qEwHejir8BysYybp9jvqA8JUQIZutj546MNFR6ik MEt6XvCndPvpJep4CPR/CO20IdhMphdFUhIHlzC4tbHdFp256wrLN/DbxVZ31Xu0s9Hd 56Te53hXuqFAZFLPMVMmIv8mTfxAJ1Rl1bJ7+v8n+fPt3sddBSQoZEY4+pCQvWo6Y0xm sT6g== X-Gm-Message-State: AO0yUKVvXsvlhwFkOLXEGGShfOnoqzHP1VoMQowgPGfJiD32lVHvi2Fp aFOtQBBS6LSAaPpiqcmhggMrhpq6ceH1OeDYU99t X-Google-Smtp-Source: AK7set+N85BqMue2v5DA9Vr88JsCXNggIFu/8mvX8mUPoZrr6/LcRki42XTM/2uOd37lvUPRUKmH16fMgwdWvO+OcmQ= X-Received: by 2002:a0d:cb04:0:b0:52b:e174:c153 with SMTP id n4-20020a0dcb04000000b0052be174c153mr1426017ywd.271.1676078315356; Fri, 10 Feb 2023 17:18:35 -0800 (PST) MIME-Version: 1.0 References: <08fbdf25-faa1-aa13-4f13-d30acbf27dda@mipisi.de> <20190902074917.GA21922@piout.net> <4fc3a016-ec2f-a15e-5fd1-6794a001e2d9@mipisi.de> <87edr02fsc.ffs@tglx> <87zg9m26f2.ffs@tglx> In-Reply-To: From: John Stultz Date: Fri, 10 Feb 2023 17:18:23 -0800 Message-ID: Subject: Re: Problem when function alarmtimer_suspend returns 0 if time delta is zero To: Thomas Gleixner Cc: Michael Nazzareno Trimarchi , Michael , Alexandre Belloni , linux-rtc@vger.kernel.org, Stephen Boyd , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 10, 2023 at 5:04 PM John Stultz wrote: > Thomas' patch fixes the erronious 0-as-invalid initialization issue > using KTIME_MAX but also simplifies the logic getting rid of the > freezer handling. > > I don't have as much familiarity with the freezer handling change, so > while it looks sane, I can't say I would likely catch an issue doing a > visual review. Actually, because of this, I'm going to split Thomas' change in two. The first to just use KTIME_MAX as the invalid initialization value, and the second to cleanup the freezer logic. That way if the freezer change is problematic we can revert it and not lose the fix here. thanks -john