Skip to content

Commit 58589c6

Browse files
Dr. David Alan Gilbertalexandrebelloni
authored andcommitted
rtc: Remove hpet_rtc_dropped_irq()
hpet_rtc_dropped_irq() has been unused since commit f52ef24 ("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>
1 parent 6758bd0 commit 58589c6

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

arch/x86/include/asm/hpet.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ extern int hpet_set_rtc_irq_bit(unsigned long bit_mask);
8484
extern int hpet_set_alarm_time(unsigned char hrs, unsigned char min,
8585
unsigned char sec);
8686
extern int hpet_set_periodic_freq(unsigned long freq);
87-
extern int hpet_rtc_dropped_irq(void);
8887
extern int hpet_rtc_timer_init(void);
8988
extern irqreturn_t hpet_rtc_interrupt(int irq, void *dev_id);
9089
extern int hpet_register_irq_handler(rtc_irq_handler handler);

arch/x86/kernel/hpet.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,12 +1392,6 @@ int hpet_set_periodic_freq(unsigned long freq)
13921392
}
13931393
EXPORT_SYMBOL_GPL(hpet_set_periodic_freq);
13941394

1395-
int hpet_rtc_dropped_irq(void)
1396-
{
1397-
return is_hpet_enabled();
1398-
}
1399-
EXPORT_SYMBOL_GPL(hpet_rtc_dropped_irq);
1400-
14011395
static void hpet_rtc_timer_reinit(void)
14021396
{
14031397
unsigned int delta;

drivers/rtc/rtc-cmos.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,6 @@ static inline int hpet_set_periodic_freq(unsigned long freq)
151151
return 0;
152152
}
153153

154-
static inline int hpet_rtc_dropped_irq(void)
155-
{
156-
return 0;
157-
}
158-
159154
static inline int hpet_rtc_timer_init(void)
160155
{
161156
return 0;

0 commit comments

Comments
 (0)