diff options
author | 2024-10-15 12:09:38 -0700 | |
---|---|---|
committer | 2024-10-16 21:56:57 +0200 | |
commit | ce1fa22a659dad1a14ae9ede2063e5bc6c9a86fb (patch) | |
tree | 3e60ef5eb4ce4cc68d83d5cbcd0067aefe16645d | |
parent | x86/acpi: Switch to irq_get_nr_irqs() and irq_set_nr_irqs() (diff) | |
download | wireguard-linux-ce1fa22a659dad1a14ae9ede2063e5bc6c9a86fb.tar.xz wireguard-linux-ce1fa22a659dad1a14ae9ede2063e5bc6c9a86fb.zip |
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 <bvanassche@acm.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20241015190953.1266194-8-bvanassche@acm.org
-rw-r--r-- | drivers/char/hpet.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index e904e476e49a..48fe96ab4649 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c @@ -162,6 +162,7 @@ static irqreturn_t hpet_interrupt(int irq, void *data) static void hpet_timer_set_irq(struct hpet_dev *devp) { + const unsigned int nr_irqs = irq_get_nr_irqs(); unsigned long v; int irq, gsi; struct hpet_timer __iomem *timer; |