summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@libc.org>2016-03-25 00:16:26 +0000
committerRich Felker <dalias@libc.org>2016-03-30 00:49:06 +0000
commite23032978527d06e6cc975419de20378d716391b (patch)
tree12d7cbab78f83bb4d13c4632f6e233531ff68eb4
parent4ac46a17d478b17abd2fb78101209c111b17c383 (diff)
downloadlinux-sh-e23032978527d06e6cc975419de20378d716391b.tar.gz
led pulse hacks for J-Core PIT
-rw-r--r--drivers/clocksource/jcore-pit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/clocksource/jcore-pit.c b/drivers/clocksource/jcore-pit.c
index d1bf8d490ff8..fc3e787194ca 100644
--- a/drivers/clocksource/jcore-pit.c
+++ b/drivers/clocksource/jcore-pit.c
@@ -140,6 +140,11 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id)
{
struct clock_event_device *ced = this_cpu_ptr(dev_id);
+// static int cnt[2];
+// if (!cnt[smp_processor_id()]--) { cnt[smp_processor_id()]=50;
+// *(volatile u32*)0xabcd0000 ^= 0x10 << smp_processor_id(); }
+ *(volatile u32*)0xabcd0000 ^= 0x10 << smp_processor_id();
+
if (clockevent_state_oneshot(ced)) pit_disable(ced);
ced->event_handler(ced);