Skip to content

Commit

Permalink
MIPS: JZ4740: Set one-shot feature flag for the clockevent
Browse files Browse the repository at this point in the history
The code for supporting one-shot mode for the clockevent is already there,
only the feature flag was not set.  Setting the one-shot flag allows the
kernel to run in tickless mode.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2261/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Lars-Peter Clausen authored and Ralf Baechle committed May 10, 2011
1 parent aa7ce1c commit 1e2bbde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/jz4740/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1e2bbde

Please sign in to comment.