linux-mips
[Top] [All Lists]

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

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH] MIPS: JZ4740: Set one-shot feature flag for the clockevent
From: Lars-Peter Clausen <lars@metafoo.de>
Date: Thu, 31 Mar 2011 20:52:20 +0200
Cc: linux-mips@linux-mips.org, Lars-Peter Clausen <lars@metafoo.de>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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@metafoo.de>
---
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


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] MIPS: JZ4740: Set one-shot feature flag for the clockevent, Lars-Peter Clausen <=