Re: [PATCH 52/57] power: abx500_chargalg: Use hrtimer

2012-09-28 Thread Anton Vorontsov
On Fri, Sep 28, 2012 at 12:33:51PM -0600, Mathieu Poirier wrote: [...] > >> @@ -413,11 +428,10 @@ static void > >> abx500_chargalg_start_safety_timer(struct abx500_chargalg *di) > >>} > >> > >>di->events.safety_timer_expired = false; > >> - di->safety_timer.expires = timer_expiration;

Re: [PATCH 52/57] power: abx500_chargalg: Use hrtimer

2012-09-28 Thread Mathieu Poirier
On 12-09-27 08:47 PM, Anton Vorontsov wrote: > On Tue, Sep 25, 2012 at 10:12:49AM -0600, mathieu.poir...@linaro.org wrote: >> From: Hakan Berg >> >> Timers used for charging safety and maintenance must work even when >> CPU is power collapsed. By using hrtimers with realtime clock, system >> is

Re: [PATCH 52/57] power: abx500_chargalg: Use hrtimer

2012-09-28 Thread Mathieu Poirier
On 12-09-27 08:47 PM, Anton Vorontsov wrote: On Tue, Sep 25, 2012 at 10:12:49AM -0600, mathieu.poir...@linaro.org wrote: From: Hakan Berg hakan.b...@stericsson.com Timers used for charging safety and maintenance must work even when CPU is power collapsed. By using hrtimers with realtime

Re: [PATCH 52/57] power: abx500_chargalg: Use hrtimer

2012-09-28 Thread Anton Vorontsov
On Fri, Sep 28, 2012 at 12:33:51PM -0600, Mathieu Poirier wrote: [...] @@ -413,11 +428,10 @@ static void abx500_chargalg_start_safety_timer(struct abx500_chargalg *di) } di-events.safety_timer_expired = false; - di-safety_timer.expires = timer_expiration; - if

Re: [PATCH 52/57] power: abx500_chargalg: Use hrtimer

2012-09-27 Thread Anton Vorontsov
On Tue, Sep 25, 2012 at 10:12:49AM -0600, mathieu.poir...@linaro.org wrote: > From: Hakan Berg > > Timers used for charging safety and maintenance must work even when > CPU is power collapsed. By using hrtimers with realtime clock, system > is able to trigger an alarm that wakes the CPU up and

Re: [PATCH 52/57] power: abx500_chargalg: Use hrtimer

2012-09-27 Thread Anton Vorontsov
On Tue, Sep 25, 2012 at 10:12:49AM -0600, mathieu.poir...@linaro.org wrote: From: Hakan Berg hakan.b...@stericsson.com Timers used for charging safety and maintenance must work even when CPU is power collapsed. By using hrtimers with realtime clock, system is able to trigger an alarm that

[PATCH 52/57] power: abx500_chargalg: Use hrtimer

2012-09-25 Thread mathieu . poirier
From: Hakan Berg Timers used for charging safety and maintenance must work even when CPU is power collapsed. By using hrtimers with realtime clock, system is able to trigger an alarm that wakes the CPU up and make it possible to handle the event. Allow a little slack of 5 minutes to the

[PATCH 52/57] power: abx500_chargalg: Use hrtimer

2012-09-25 Thread mathieu . poirier
From: Hakan Berg hakan.b...@stericsson.com Timers used for charging safety and maintenance must work even when CPU is power collapsed. By using hrtimers with realtime clock, system is able to trigger an alarm that wakes the CPU up and make it possible to handle the event. Allow a little slack of