Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtc: Remove hpet_rtc_dropped_irq()

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>

authored by

Dr. David Alan Gilbert and committed by
Alexandre Belloni
58589c6a 6758bd06

-12
-1
arch/x86/include/asm/hpet.h
··· 84 84 extern int hpet_set_alarm_time(unsigned char hrs, unsigned char min, 85 85 unsigned char sec); 86 86 extern int hpet_set_periodic_freq(unsigned long freq); 87 - extern int hpet_rtc_dropped_irq(void); 88 87 extern int hpet_rtc_timer_init(void); 89 88 extern irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id); 90 89 extern int hpet_register_irq_handler(rtc_irq_handler handler);
-6
arch/x86/kernel/hpet.c
··· 1392 1392 } 1393 1393 EXPORT_SYMBOL_GPL(hpet_set_periodic_freq); 1394 1394 1395 - int hpet_rtc_dropped_irq(void) 1396 - { 1397 - return is_hpet_enabled(); 1398 - } 1399 - EXPORT_SYMBOL_GPL(hpet_rtc_dropped_irq); 1400 - 1401 1395 static void hpet_rtc_timer_reinit(void) 1402 1396 { 1403 1397 unsigned int delta;
-5
drivers/rtc/rtc-cmos.c
··· 151 151 return 0; 152 152 } 153 153 154 - static inline int hpet_rtc_dropped_irq(void) 155 - { 156 - return 0; 157 - } 158 - 159 154 static inline int hpet_rtc_timer_init(void) 160 155 { 161 156 return 0;