Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2471401rwb; Mon, 7 Nov 2022 13:47:07 -0800 (PST) X-Google-Smtp-Source: AMsMyM6pGKxY+CqVDentxy3IIo8juF3lGcWZ+fzznB2E5Eg0FDms8Tqd2dFJxsM3K6NDPSrE3zc9 X-Received: by 2002:a17:902:d903:b0:186:601a:a6fa with SMTP id c3-20020a170902d90300b00186601aa6famr54302754plz.102.1667857627416; Mon, 07 Nov 2022 13:47:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667857627; cv=none; d=google.com; s=arc-20160816; b=0a1tdVv0Jz+4yEPIgvvGsieS/Kpxn2TwvRe879oBdJUR6AXz6uYucL+TI4ppssOjF5 NbZomZEEdbd6P9EqCiNjA7cEjYqjLo0NGBGvkw02UC+IK2dyYhZVML4GBzV79JQRobiS nXH4agcmZ2C01W71E0PVY5Dw3bbp9CA9Li6OumVqB0y3rCpMnHNr7QRNQfXGO6HvbAKl FTKPEi3N/bu1aFsWdpjfK13cknwyqceg//aVpnvETxaCxo2lNzHag3PqNWYB/eWxdIz8 serkp2bwAl+AiUnAa3UOyvvsbbYDfPHysKXQdzZRaSoyq/llq6SjRkYTc4s4OE6mhDYq qtVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=bQDygIwXG1/XIc4IK6davU7ugsMS97aHGnuvUCYVOhc=; b=gVGi3ESFKVXBsCzdwiW4tZgWq7CyZncPma+VypFGuaxLO8dLzdhftqXn1kwgHYJ207 YZ9XDrznFF79tfk6baJLTIOBa/aTs3835Bt3GRHbsiUG1zLHF5+tpzcNhE8rqHExMM+g usBLsDATtS6yJjFtygKgfDVNRnQc5H7NsXG8XB549mHvNHyPyvkYizyzmpNK3vBWyD+d A+Fh7F+f0uN23m/mYe/Akz81epsFJDpQLdDQ8gwG5XyNE1wSwxQFNlTjybJLUt2WmMGm DljlRfLETuQ/hgD7oZ4yhaYXLtMfS32pxiypL5tuBFzgvMg+idzFWLKMdvbvsrPjQa/h CjoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="EZrjx+/F"; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z15-20020aa79f8f000000b005251aec9b1esi10455335pfr.225.2022.11.07.13.46.54; Mon, 07 Nov 2022 13:47: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; dkim=pass header.i=@intel.com header.s=Intel header.b="EZrjx+/F"; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233227AbiKGV2p (ORCPT + 92 others); Mon, 7 Nov 2022 16:28:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231659AbiKGV2o (ORCPT ); Mon, 7 Nov 2022 16:28:44 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5746118E03; Mon, 7 Nov 2022 13:28:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667856523; x=1699392523; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=eMhhFWN0tq3l9heiz2390g+NAjEPIpwyv/9Bc22v3Xg=; b=EZrjx+/FT6Askg25K7DfXJ+Uua8eu0oyfjEx8Bq12Rq7yt+O3K4ZXdcn CFxYUdJfln2q0ybuCzbdLWRye2Oa/C7DKHZTjRN4BQJOmZ2E/p4xZ/kKf MTarx+TTBoQvszxzrhNj9ZdflwpI00iloINgdBanqK7tZov0FFgqbmgmt RYiw7N44rVNiO6iNmwJ2OGX8psA0BriskYA9YmOZxeSTN3cS4IvIo25Zh w8X1s1ijindBtlXvBZVvGHJSsNheZALNwc/23hbclArJzS27guQr2Wj+f 1hlUUYWOvI1PeKpmJ6s8/KDCSmr65owMNHDnesaYp0xipnxwgCT6UC3n9 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10524"; a="310530454" X-IronPort-AV: E=Sophos;i="5.96,145,1665471600"; d="scan'208";a="310530454" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2022 13:28:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10524"; a="614022429" X-IronPort-AV: E=Sophos;i="5.96,145,1665471600"; d="scan'208";a="614022429" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga006.jf.intel.com with ESMTP; 07 Nov 2022 13:28:40 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1os9fa-008qG5-1s; Mon, 07 Nov 2022 23:28:38 +0200 Date: Mon, 7 Nov 2022 23:28:38 +0200 From: Andy Shevchenko To: "Rafael J. Wysocki" Cc: Alexandre Belloni , linux-rtc@vger.kernel.org, Linux ACPI , LKML , Linux PM , Zhang Rui , Alessandro Zummo Subject: Re: [PATCH v1 5/5] rtc: rtc-cmos: Disable ACPI RTC event on removal Message-ID: References: <2276401.ElGaqSPkdT@kreacher> <2219830.iZASKD2KPV@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2219830.iZASKD2KPV@kreacher> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE autolearn=ham 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 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); > +} -- With Best Regards, Andy Shevchenko