]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rtc: Remove hpet_rtc_dropped_irq()
authorDr. David Alan Gilbert <linux@treblig.org>
Sun, 15 Dec 2024 02:23:56 +0000 (02:23 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 13 Jan 2025 22:07:18 +0000 (23:07 +0100)
hpet_rtc_dropped_irq() has been unused since
commit f52ef24be21a ("rtc/alpha: remove legacy rtc driver")

Remove it in rtc, and x86 hpet code.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Acked-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20241215022356.181625-1-linux@treblig.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
arch/x86/include/asm/hpet.h
arch/x86/kernel/hpet.c
drivers/rtc/rtc-cmos.c

index ab9f3dd87c805bda9ec6d107a901b4c4dac7c4fd..ab0c78855ecb25851f529749c30b8094d3bb9ba1 100644 (file)
@@ -84,7 +84,6 @@ extern int hpet_set_rtc_irq_bit(unsigned long bit_mask);
 extern int hpet_set_alarm_time(unsigned char hrs, unsigned char min,
                               unsigned char sec);
 extern int hpet_set_periodic_freq(unsigned long freq);
-extern int hpet_rtc_dropped_irq(void);
 extern int hpet_rtc_timer_init(void);
 extern irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id);
 extern int hpet_register_irq_handler(rtc_irq_handler handler);
index c96ae8fee95e443b262c1083fe0a9f96e4e6a67c..7e21018a0e043398afda01ef126cae33562b5c43 100644 (file)
@@ -1392,12 +1392,6 @@ int hpet_set_periodic_freq(unsigned long freq)
 }
 EXPORT_SYMBOL_GPL(hpet_set_periodic_freq);
 
-int hpet_rtc_dropped_irq(void)
-{
-       return is_hpet_enabled();
-}
-EXPORT_SYMBOL_GPL(hpet_rtc_dropped_irq);
-
 static void hpet_rtc_timer_reinit(void)
 {
        unsigned int delta;
index 4bd3a3a04d4444ffcda55638ef7516f3ac6e0211..8172869bd3d79365f291894fe417f810352720fb 100644 (file)
@@ -151,11 +151,6 @@ static inline int hpet_set_periodic_freq(unsigned long freq)
        return 0;
 }
 
-static inline int hpet_rtc_dropped_irq(void)
-{
-       return 0;
-}
-
 static inline int hpet_rtc_timer_init(void)
 {
        return 0;