Skip to content

Commit ce1fa22

Browse files
bvanasscheKAGA-KOKO
authored andcommitted
hpet: Switch to irq_get_nr_irqs()
Use the irq_get_nr_irqs() function instead of the global variable 'nr_irqs'. Prepare for changing 'nr_irqs' from an exported global variable into a variable with file scope. Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent f642974 commit ce1fa22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/char/hpet.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ static irqreturn_t hpet_interrupt(int irq, void *data)
162162

163163
static void hpet_timer_set_irq(struct hpet_dev *devp)
164164
{
165+
const unsigned int nr_irqs = irq_get_nr_irqs();
165166
unsigned long v;
166167
int irq, gsi;
167168
struct hpet_timer __iomem *timer;

0 commit comments

Comments
 (0)