[PATCH] MIPS: JZ4740: Set one-shot feature flag for the clockevent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The code for supporting one-shot mode for the clockevent is already there, only
the feature flag was not set.
This patch allows the kernel to run in tickless mode.

Signed-off-by: Lars-Peter Clausen <lars@xxxxxxxxxx>
---
It would be nice if the patch could go into 2.6.39, it is not required for
stable though.
---
 arch/mips/jz4740/time.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/jz4740/time.c b/arch/mips/jz4740/time.c
index fe01678..eaa853a 100644
--- a/arch/mips/jz4740/time.c
+++ b/arch/mips/jz4740/time.c
@@ -89,7 +89,7 @@ static int jz4740_clockevent_set_next(unsigned long evt,
 
 static struct clock_event_device jz4740_clockevent = {
 	.name = "jz4740-timer",
-	.features = CLOCK_EVT_FEAT_PERIODIC,
+	.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT,
 	.set_next_event = jz4740_clockevent_set_next,
 	.set_mode = jz4740_clockevent_set_mode,
 	.rating = 200,
-- 
1.7.2.5




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux