diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2017-06-23 09:32:33 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-06-26 11:12:07 -0700 |
commit | ceb3e318c8c6fe15129ade47b169c3c03c729fe1 (patch) | |
tree | 11287cbace11fb654bc7e977639927f78912a54a /chip/lm4 | |
parent | 92b7baff54aba25610a9b847037a3a41109ebce8 (diff) | |
download | chrome-ec-ceb3e318c8c6fe15129ade47b169c3c03c729fe1.tar.gz |
watchdog: Don't discard irqprio data due to CONFIG_LTO
Don't discard irqprio data when the IRQ_PRIORITY macro is used directly
(for watchdog / watchdog timer).
This change is probably a NOP for all platforms, since the power-on
default for the IRQ prio register seems to be zero, which is the same
priority we're setting in our direct use of IRQ_PRIORITY.
BUG=chromium:634701
BRANCH=None
TEST=Verify 'prio_44' entry exists in irqprio section by checking
ec.RO.map on kevin.
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Change-Id: Idaffc484a2ce4749c18212f179b3951ff570aed0
Reviewed-on: https://chromium-review.googlesource.com/545201
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip/lm4')
-rw-r--r-- | chip/lm4/watchdog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/lm4/watchdog.c b/chip/lm4/watchdog.c index f743077441..583ace0582 100644 --- a/chip/lm4/watchdog.c +++ b/chip/lm4/watchdog.c @@ -48,7 +48,7 @@ void IRQ_HANDLER(LM4_IRQ_WATCHDOG)(void) "b task_resched_if_needed\n" : : [irq] "i" (LM4_IRQ_WATCHDOG)); } -const struct irq_priority IRQ_PRIORITY(LM4_IRQ_WATCHDOG) +const struct irq_priority __keep IRQ_PRIORITY(LM4_IRQ_WATCHDOG) __attribute__((section(".rodata.irqprio"))) = {LM4_IRQ_WATCHDOG, 0}; /* put the watchdog at the highest priority */ |