summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@libc.org>2016-03-25 00:16:26 +0000
committerRich Felker <dalias@libc.org>2016-04-28 20:48:21 +0000
commitbc5d710f8d251116f5d3e569aafefa78523b5fcc (patch)
tree5f990ef5ff727eccd5bf9f64453b8a3f3bbcda16
parentbb5118094da97d62be91e0c8148e27eaa53fadec (diff)
downloadlinux-sh-bc5d710f8d251116f5d3e569aafefa78523b5fcc.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 a4fde51a7fc6..91e974a626e4 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);