diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-06-27 14:43:32 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-01 21:25:27 +0000 |
commit | 3a41cf13988ba1e465e770f7f4f140241780cecb (patch) | |
tree | e4332916efb21f72234124eedfd2bb810bf731ed /core | |
parent | 5f61001bf520321d84dd4a14743f166ea2e92528 (diff) | |
download | chrome-ec-3a41cf13988ba1e465e770f7f4f140241780cecb.tar.gz |
core/host/irq_handler.h: Format with clang-format
BUG=b:236386294
BRANCH=none
TEST=none
Change-Id: I55e35249e1eaa05f25d704568aed7bec9d5f89aa
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729840
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/host/irq_handler.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/core/host/irq_handler.h b/core/host/irq_handler.h index 17e3df52d9..883a8c1239 100644 --- a/core/host/irq_handler.h +++ b/core/host/irq_handler.h @@ -15,16 +15,16 @@ * Macro to connect the interrupt handler "routine" to the irq number "irq" and * ensure it is enabled in the interrupt controller with the right priority. */ -#define DECLARE_IRQ(irq, routine, priority) \ - static void __keep routine(void); \ - void IRQ_HANDLER(irq)(void) \ - { \ - void *ret = __builtin_return_address(0); \ - task_start_irq_handler(ret); \ - routine(); \ - task_resched_if_needed(ret); \ - } \ - const struct irq_priority __keep IRQ_PRIORITY(irq) \ - __attribute__((section(".rodata.irqprio"))) \ - = {irq, priority} -#endif /* __CROS_EC_IRQ_HANDLER_H */ +#define DECLARE_IRQ(irq, routine, priority) \ + static void __keep routine(void); \ + void IRQ_HANDLER(irq)(void) \ + { \ + void *ret = __builtin_return_address(0); \ + task_start_irq_handler(ret); \ + routine(); \ + task_resched_if_needed(ret); \ + } \ + const struct irq_priority __keep IRQ_PRIORITY(irq) \ + __attribute__((section(".rodata.irqprio"))) = { irq, \ + priority } +#endif /* __CROS_EC_IRQ_HANDLER_H */ |