projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ee4a5a
)
irqchip/sifive-plic: Use for_each_present_cpu() instead of for_each_cpu()
author
Fushuai Wang
<wangfushuai@baidu.com>
Mon, 11 Aug 2025 06:47:01 +0000
(14:47 +0800)
committer
Thomas Gleixner
<tglx@linutronix.de>
Sun, 24 Aug 2025 10:10:46 +0000
(12:10 +0200)
Replace the open coded for_each_cpu(cpu, cpu_present_mask) loop with the
more readable and equivalent for_each_present_cpu(cpu) macro.
Signed-off-by: Fushuai Wang <wangfushuai@baidu.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link:
https://lore.kernel.org/all/20250811064701.2906-1-wangfushuai@baidu.com
drivers/irqchip/irq-sifive-plic.c
patch
|
blob
|
history
diff --git
a/drivers/irqchip/irq-sifive-plic.c
b/drivers/irqchip/irq-sifive-plic.c
index
bf69a48
..
3de5460
100644
(file)
--- a/
drivers/irqchip/irq-sifive-plic.c
+++ b/
drivers/irqchip/irq-sifive-plic.c
@@
-257,7
+257,7
@@
static int plic_irq_suspend(void)
readl(priv->regs + PRIORITY_BASE + i * PRIORITY_PER_ID));
}
- for_each_
cpu(cpu, cpu_present_mask
) {
+ for_each_
present_cpu(cpu
) {
struct plic_handler *handler = per_cpu_ptr(&plic_handlers, cpu);
if (!handler->present)
@@
-289,7
+289,7
@@
static void plic_irq_resume(void)
priv->regs + PRIORITY_BASE + i * PRIORITY_PER_ID);
}
- for_each_
cpu(cpu, cpu_present_mask
) {
+ for_each_
present_cpu(cpu
) {
struct plic_handler *handler = per_cpu_ptr(&plic_handlers, cpu);
if (!handler->present)