sched/irq: Change the function parameter "regs" to "context"

The identifier regs has been used to represent a type, and cannot be used in here. So change the "regs" to "context"

Signed-off-by: pangzhen1 <pangzhen1@xiaomi.com>
This commit is contained in:
pangzhen1
2025-09-02 20:04:18 +08:00
committed by Donny(董九柱)
parent a3273e6a96
commit b45a658f67
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -61,14 +61,15 @@ struct irq_thread_info_s
* Useful for oneshot interrupts. * Useful for oneshot interrupts.
*/ */
static int irq_thread_default_handler(int irq, FAR void *regs, FAR void *arg) static int irq_thread_default_handler(int irq, FAR void *context,
FAR void *arg)
{ {
FAR struct irq_thread_info_s *info = arg; FAR struct irq_thread_info_s *info = arg;
int ret = IRQ_WAKE_THREAD; int ret = IRQ_WAKE_THREAD;
if (info->handler != NULL) if (info->handler != NULL)
{ {
ret = info->handler(irq, regs, info->arg); ret = info->handler(irq, context, info->arg);
} }
if (ret == IRQ_WAKE_THREAD) if (ret == IRQ_WAKE_THREAD)
+2 -2
View File
@@ -114,14 +114,14 @@ static void irq_work_handler(FAR void *arg)
info->isrwork(info->irq, NULL, info->arg); info->isrwork(info->irq, NULL, info->arg);
} }
static int irq_default_handler(int irq, FAR void *regs, FAR void *arg) static int irq_default_handler(int irq, FAR void *context, FAR void *arg)
{ {
FAR struct irq_work_info_s *info = arg; FAR struct irq_work_info_s *info = arg;
int ret = IRQ_WAKE_THREAD; int ret = IRQ_WAKE_THREAD;
if (info->handler != NULL) if (info->handler != NULL)
{ {
ret = info->handler(irq, regs, info->arg); ret = info->handler(irq, context, info->arg);
} }
if (ret == IRQ_WAKE_THREAD) if (ret == IRQ_WAKE_THREAD)