]> git.karo-electronics.de Git - linux-beck.git/commitdiff
MIPS: mark R4K clockevent device with CLOCK_EVT_FEAT_C3STOP
authorPaul Burton <paul.burton@imgtec.com>
Fri, 14 Feb 2014 09:20:15 +0000 (09:20 +0000)
committerPaul Burton <paul.burton@imgtec.com>
Fri, 2 May 2014 15:39:11 +0000 (16:39 +0100)
When a core enters a clock off or power down state its CP0 counter will
be stopped along with it.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
arch/mips/kernel/cevt-r4k.c

index 50d3f5a8d6bb1a9657ec9baa5ccd6852734ad6cf..7820d5d3d4751f24475d00bdf821560bd1366679 100644 (file)
@@ -195,7 +195,8 @@ int r4k_clockevent_init(void)
        cd = &per_cpu(mips_clockevent_device, cpu);
 
        cd->name                = "MIPS";
-       cd->features            = CLOCK_EVT_FEAT_ONESHOT;
+       cd->features            = CLOCK_EVT_FEAT_ONESHOT |
+                                 CLOCK_EVT_FEAT_C3STOP;
 
        clockevent_set_clock(cd, mips_hpt_frequency);