From: Tzung-Bi Shih <tzungbi@kernel.org>
To: "Rajneesh Bhardwaj" <irenic.rajneesh@gmail.com>,
"Xi Pardee" <xi.pardee@linux.intel.com>,
"Hans de Goede" <hansg@kernel.org>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Cc: platform-driver-x86@vger.kernel.org, tzungbi@kernel.org,
linux-kernel@vger.kernel.org, tfiga@chromium.org
Subject: [PATCH v4 1/3] clocksource: acpi_pm: Add stubs for suspend/resume callback helpers
Date: Thu, 19 Nov 2026 03:01:15 +0000 [thread overview]
Message-ID: <20261119030117.3943303-2-tzungbi@kernel.org> (raw)
In-Reply-To: <20261119030117.3943303-1-tzungbi@kernel.org>
Commit 56bd72e9cd82 ("clocksource: acpi_pm: Add external callback for
suspend/resume") declared acpi_pmtmr_register_suspend_resume_callback()
and acpi_pmtmr_unregister_suspend_resume_callback() only under
CONFIG_X86_PM_TIMER.
Provide static inline stubs in the #else branch so callers can guard
registration with IS_ENABLED(CONFIG_X86_PM_TIMER).
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
---
v4:
- New to the series.
---
include/linux/acpi_pmtmr.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/linux/acpi_pmtmr.h b/include/linux/acpi_pmtmr.h
index cceed294d0b5..94ddc04fe3f1 100644
--- a/include/linux/acpi_pmtmr.h
+++ b/include/linux/acpi_pmtmr.h
@@ -48,6 +48,11 @@ static inline u32 acpi_pm_read_early(void)
return 0;
}
+static inline void acpi_pmtmr_register_suspend_resume_callback(void (*cb)(void *data, bool suspend),
+ void *data) {}
+
+static inline void acpi_pmtmr_unregister_suspend_resume_callback(void) {}
+
#endif
#endif
--
2.56.1.708.g77570a6a1d-goog
next prev parent reply other threads:[~2026-11-19 3:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 3:01 [PATCH v4 0/3] platform/x86/intel/pmc: Disable ACPI PM timer during suspend on PTL Tzung-Bi Shih
2026-11-19 3:01 ` Tzung-Bi Shih [this message]
2026-11-19 3:01 ` [PATCH v4 2/3] platform/x86/intel/pmc: Support disabling ACPI PM timer during suspend Tzung-Bi Shih
2026-11-19 3:01 ` [PATCH v4 3/3] platform/x86/intel/pmc: Disable ACPI PM timer during suspend on Panther Lake Tzung-Bi Shih
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261119030117.3943303-2-tzungbi@kernel.org \
--to=tzungbi@kernel.org \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=irenic.rajneesh@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=tfiga@chromium.org \
--cc=xi.pardee@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®