aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2014-04-15 07:05:24 -0400
committerPaul Burton <paul.burton@imgtec.com>2014-05-02 11:39:12 -0400
commitd8107efd8a3c15ec5885dbe1d3168e26c6b3e2e4 (patch)
tree6d3d73ad8e32c09bcf27bde4f25ac7a8d37fd71f
parent5977d682d21cc65a9e0e402e94709e210af04459 (diff)
MIPS: mark R4K clockevent device with CLOCK_EVT_FEAT_PERCPU
The CLOCK_EVT_FEAT_PERCPU flag indicates that a clockevent device is only configurable by the CPU for which it is registered, and thus cannot be used as the tick broadcast device. That property is true of the R4K timer, which is inaccessible from other cores. Signed-off-by: Paul Burton <paul.burton@imgtec.com>
-rw-r--r--arch/mips/kernel/cevt-r4k.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/kernel/cevt-r4k.c b/arch/mips/kernel/cevt-r4k.c
index 7820d5d3d475..f3c549c4b75e 100644
--- a/arch/mips/kernel/cevt-r4k.c
+++ b/arch/mips/kernel/cevt-r4k.c
@@ -196,7 +196,8 @@ int r4k_clockevent_init(void)
196 196
197 cd->name = "MIPS"; 197 cd->name = "MIPS";
198 cd->features = CLOCK_EVT_FEAT_ONESHOT | 198 cd->features = CLOCK_EVT_FEAT_ONESHOT |
199 CLOCK_EVT_FEAT_C3STOP; 199 CLOCK_EVT_FEAT_C3STOP |
200 CLOCK_EVT_FEAT_PERCPU;
200 201
201 clockevent_set_clock(cd, mips_hpt_frequency); 202 clockevent_set_clock(cd, mips_hpt_frequency);
202 203