Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3806483rwb; Tue, 8 Nov 2022 08:34:08 -0800 (PST) X-Google-Smtp-Source: AMsMyM4R0TplgXw/hxJQImYjclf2jjiS/aKiwHWu0WGY+liiHvnsrQanLWqdTYcNyrTissr1PTkV X-Received: by 2002:aa7:d341:0:b0:464:778:c3fe with SMTP id m1-20020aa7d341000000b004640778c3femr35711755edr.251.1667925247785; Tue, 08 Nov 2022 08:34:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667925247; cv=none; d=google.com; s=arc-20160816; b=DVDq7BZ1QYtxwMg1dduJqXCf2JaGmuhkXD4ml5xB0J+e0mfekFM0QBkjbdXSefJa8x /pzW20yND+y0/IUY3um1ngpCwSIfDWCCzDGU2Dcb/BQb6Wh3IFgknGvOz07ZRBWJiAbd u8Mvrmcn55rRn/vLrnNS03UWku4cCNRrGDKJa92mAdXZtDHPXtouYrYepw6Ry1t5I1ce LPO7G4i3EAE/XhzhmUzlvSAy/eig0p0sxgjr1j2rHw59nMIkFFdS9thNMiy8sSfOcIfr G1YllBCmaPwYUfmM6DI6TeFo1cKxZ9m11fiZkM4m2gm6vkHYfzIhUZViOWZ0hRTNtDxT Wf0g== 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; bh=upVQhf6pWIcHB9R3hepXMqElSmvFn2xXyyNPv5bvdTY=; b=vdSqhB59moB1dSJsb0tvlWez88rEVxK5g1ZbLJ4RA0vnVRsTnwEfoz4WWbEr/1FK+T H5tf2nHsd87Krp6rblpmMm2mkioyzGzmEvRMyOTYXX9FTe08wRg2pv6zzCykYKZJ8gDO b7D/wUWPFJtQeDEokJlPHolV0hTMzJGJes2R1Dw0TW3K/c3u77ow/QDnVv0ex9Dw+S/P 7iqI1DSjXQm7bJAwOGDbGGfj68PKqnJuoUYlnxY4Bvf2P54t74z0/rSleuHJJu/CT0WM pj2mNuGrdTCk09hcqpTLgtFt1AObR+jQflBsXb4piqrQ49repGIBreXkR7Dg3PVwDRmL ITOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y8-20020a50bb08000000b0044e987f3a34si13343478ede.489.2022.11.08.08.33.45; Tue, 08 Nov 2022 08:34:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234413AbiKHOzM (ORCPT + 91 others); Tue, 8 Nov 2022 09:55:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234263AbiKHOzK (ORCPT ); Tue, 8 Nov 2022 09:55:10 -0500 Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27F65CE1B; Tue, 8 Nov 2022 06:55:10 -0800 (PST) Received: by mail-qt1-f177.google.com with SMTP id cg5so8734495qtb.12; Tue, 08 Nov 2022 06:55:10 -0800 (PST) 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=upVQhf6pWIcHB9R3hepXMqElSmvFn2xXyyNPv5bvdTY=; b=aDJty5h6++lsbfctKlaWxFFCExe2kOJH9aLGtlL4su7ELmY9PJ8LjeFDbRuJCaNREY uBRkq9CNaN+EgiOFvRXFvNwZ2Hv2J0uW7tFXaDoyCrwZHEtKNP0KmrflzJZvVGmmBrQN 1xWbtKP3upqFMts3B1RKYpHJCE0mTtnf/ZRxcOa4Eb3pJ6mUZ/xrT2npRE2EreRndqSv /1wZ2iMkdaYNldegQQaiSI7rvfkWZ8MQqz05gUEWvWTIaMrCDhhjsrcbznVs1EwRGFE7 5rYD09izHypvoZP6KW6nVOcjWaONeVTuu9x8Hlup7orzg7H5KsXIsYL5UG3u1nHTq3c6 k7kw== X-Gm-Message-State: ACrzQf1xtijge7dyQpzEqzMP/5gnM2Fe/siRHerQzsAmw2U9Z3rbA61a xtdzPQ61lQ2BQGNyeyPeqFXwUYxXcK8Xlh/vRd0= X-Received: by 2002:ac8:7d15:0:b0:3a5:449:87c3 with SMTP id g21-20020ac87d15000000b003a5044987c3mr43723966qtb.357.1667919309329; Tue, 08 Nov 2022 06:55:09 -0800 (PST) MIME-Version: 1.0 References: <2276401.ElGaqSPkdT@kreacher> <2219830.iZASKD2KPV@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Tue, 8 Nov 2022 15:54:58 +0100 Message-ID: Subject: Re: [PATCH v1 5/5] rtc: rtc-cmos: Disable ACPI RTC event on removal To: Andy Shevchenko Cc: "Rafael J. Wysocki" , Alexandre Belloni , linux-rtc@vger.kernel.org, Linux ACPI , LKML , Linux PM , Zhang Rui , Alessandro Zummo Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 7, 2022 at 10:28 PM Andy Shevchenko wrote: > > On Mon, Nov 07, 2022 at 09:03:06PM +0100, Rafael J. Wysocki wrote: > > ... > > > +static inline void acpi_rtc_event_cleanup(void) > > +{ > > + if (!acpi_disabled) > > Btw, other functions look like using > > if (acpi_disabled) > return; > > pattern. Maybe here the same for the sake of consistency? > > > + acpi_remove_fixed_event_handler(ACPI_EVENT_RTC, rtc_handler); > > +} > Well, it is more lines of code, but whatever.