irqchip/irq-sifive-plic: Use for_each_present_cpu() instead of for_each_cpu()
Subsystems (2)
PATCH 1/1 irqchip/irq-sifive-plic: Use for_each_present_cpu() instead of for_each_cpu()
Replace the opencoded 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 <[email protected]>
--- drivers/irqchip/irq-sifive-plic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/irqchip/irq-sifive-plic.c +2 -2
@@ -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)
Signature · 1 line
2.36.1
[tip: irq/drivers] irqchip/sifive-plic: Use for_each_present_cpu() instead of for_each_cpu()
The following commit has been merged into the irq/drivers branch of tip:
The following commit has been merged into the irq/drivers branch of tip:
Commit-ID: b92ff23b12046f70f7f41f1e57e77c498dec35d7 Gitweb: https://git.kernel.org/tip/b92ff23b12046f70f7f41f1e57e77c498dec35d7 Author: Fushuai Wang <[email protected]> AuthorDate: Mon, 11 Aug 2025 14:47:01 +08:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Sun, 24 Aug 2025 12:10:46 +02:00
irqchip/sifive-plic: Use for_each_present_cpu() instead of for_each_cpu()
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 <[email protected]>
Signed-off-by Thomas Gleixner <[email protected]>
--- drivers/irqchip/irq-sifive-plic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/irqchip/irq-sifive-plic.c +2 -2
@@ -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)