summaryrefslogtreecommitdiff
path: root/chip/mec1322
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2017-06-23 09:32:33 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-06-26 11:12:07 -0700
commitceb3e318c8c6fe15129ade47b169c3c03c729fe1 (patch)
tree11287cbace11fb654bc7e977639927f78912a54a /chip/mec1322
parent92b7baff54aba25610a9b847037a3a41109ebce8 (diff)
downloadchrome-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/mec1322')
-rw-r--r--chip/mec1322/watchdog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/mec1322/watchdog.c b/chip/mec1322/watchdog.c
index c547b79911..a92b57f8a2 100644
--- a/chip/mec1322/watchdog.c
+++ b/chip/mec1322/watchdog.c
@@ -95,7 +95,7 @@ void IRQ_HANDLER(MEC1322_IRQ_TIMER16_0)(void)
"pop {r0, lr}\n"
"b task_resched_if_needed\n");
}
-const struct irq_priority IRQ_PRIORITY(MEC1322_IRQ_TIMER16_0)
+const struct irq_priority __keep IRQ_PRIORITY(MEC1322_IRQ_TIMER16_0)
__attribute__((section(".rodata.irqprio")))
= {MEC1322_IRQ_TIMER16_0, 0}; /* put the watchdog at the
highest priority */