On Wed, Feb 29, 2012 at 2:36 AM, Jean Pihet <jean.pi...@newoldbits.com> wrote: > Rob, > > On Wed, Feb 29, 2012 at 4:11 AM, Robert Lee <rob....@linaro.org> wrote: >> Enable core cpuidle timekeeping and irq enabling and remove that >> handling from this code. >> >> Signed-off-by: Robert Lee <rob....@linaro.org> >> --- >> arch/arm/mach-davinci/cpuidle.c | 78 >> +++++++++++++++----------------------- >> 1 files changed, 31 insertions(+), 47 deletions(-) >> >> diff --git a/arch/arm/mach-davinci/cpuidle.c >> b/arch/arm/mach-davinci/cpuidle.c >> index a30c7c5..6f457f1 100644 >> --- a/arch/arm/mach-davinci/cpuidle.c >> +++ b/arch/arm/mach-davinci/cpuidle.c > ... > >> @@ -30,12 +31,42 @@ struct davinci_ops { >> u32 flags; >> }; >> >> +/* Actual code that puts the SoC in different idle states */ >> +static int davinci_enter_idle(struct cpuidle_device *dev, >> + struct cpuidle_driver *drv, >> + int index) >> +{ >> + struct cpuidle_state_usage *state_usage = &dev->states_usage[index]; >> + struct davinci_ops *ops = cpuidle_get_statedata(state_usage); >> + >> + if (ops && ops->enter) >> + ops->enter(ops->flags); >> + >> + return cpuidle_wrap_enter(dev, drv, index, >> + cpuidle_simple_enter); > This does not look right since ops->exit will never be called. >
Yes, thanks. The 'return' should be 'index =' >> + >> + if (ops && ops->exit) >> + ops->exit(ops->flags); >> + >> + return index; >> +} >> + > ... > > Regards, > Jean _______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev