[PATCH v5] clocksource: arch_timer: Fix code to use physical timers when requested

2014-11-23 Thread Sonny Rao
he physical counter since there's nobody managing the offset and each time a core goes down and comes back up it will get reinitialized to some other random value. Fixes: 0d651e4e65e9 ("clocksource: arch_timer: use virtual counters") Cc: stable@vger.kernel.org Signed-off-by: Sonny

Re: [PATCH v4] clocksource: arch_timer: Fix code to use physical timers when requested

2014-11-23 Thread Sonny Rao
wrote: >>> > On Wed, Oct 08, 2014 at 08:38:57AM +0100, Sonny Rao wrote: >>> >> This is a bug fix for using physical arch timers when >>> >> the arch_timer_use_virtual boolean is false. It restores the >>> >> arch_counter_get_cntpc

Re: [PATCH v4] clocksource: arch_timer: Fix code to use physical timers when requested

2014-11-20 Thread Sonny Rao
On Thu, Nov 20, 2014 at 12:49 AM, Maxime Ripard wrote: > Hi, > > On Wed, Oct 08, 2014 at 12:38:57AM -0700, Sonny Rao wrote: >> This is a bug fix for using physical arch timers when >> the arch_timer_use_virtual boolean is false. It restores the >> arch_counter_get_cntp

[PATCH v4] clocksource: arch_timer: Fix code to use physical timers when requested

2014-10-08 Thread Sonny Rao
he physical counter since there's nobody managing the offset and each time a core goes down and comes back up it will get reinitialized to some other random value. Fixes: 0d651e4e65e9 ("clocksource: arch_timer: use virtual counters") Cc: stable@vger.kernel.org Signed-off-by: Sonny

[PATCH v3] clocksource: arch_timer: Fix code to use physical timers when requested

2014-10-06 Thread Sonny Rao
he physical counter since there's nobody managing the offset and each time a core goes down and comes back up it will get reinitialized to some other random value. Fixes: 0d651e4e65e9 ("clocksource: arch_timer: use virtual counters") Cc: stable@vger.kernel.org Signed-off-by: Sonny

Re: [PATCH v2] clocksource: arch_timer: Fix code to use physical timers when requested

2014-09-29 Thread Sonny Rao
for following up. > > On Thu, Sep 11, 2014 at 11:18:15PM +0100, Sonny Rao wrote: >> This is a bug fix for using physical arch timers when >> the arch_timer_use_virtual boolean is false. It restores the >> arch_counter_get_cntpct() function after removal in >> >>

[PATCH v2] clocksource: arch_timer: Fix code to use physical timers when requested

2014-09-11 Thread Sonny Rao
some other random value. Fixes: 0d651e4e65e9 ("clocksource: arch_timer: use virtual counters") Cc: stable@vger.kernel.org Signed-off-by: Sonny Rao Acked-by: Olof Johansson --- v2: Add fixes tag to commit message, cc stable, copy Doug's description of the systems which need th

[PATCHv5] mm: Fix calculation of dirtyable memory

2012-11-19 Thread Sonny Rao
al of either highmem or global dirtyable memory. Signed-off-by: Sonny Rao Signed-off-by: Puneet Kumar Acked-by: Johannes Weiner CC: stable@vger.kernel.org --- v2: added apkm's suggestion to make the highmem calculation better v3: added Fengguang Wu's suggestions fix zone_dirtyab

Re: [PATCHv5] mm: Fix calculation of dirtyable memory

2012-11-19 Thread Sonny Rao
On Mon, Nov 19, 2012 at 10:41 AM, Sonny Rao wrote: > The system uses global_dirtyable_memory() to calculate > number of dirtyable pages/pages that can be allocated > to the page cache. A bug causes an underflow thus making > the page count look like a big unsigned number.

[PATCHv4] mm: Fix calculation of dirtyable memory

2012-11-12 Thread Sonny Rao
al of either highmem or global dirtyable memory. Signed-off-by: Sonny Rao Signed-off-by: Puneet Kumar Acked-by: Johannes Weiner CC: stable@vger.kernel.org --- v2: added apkm's suggestion to make the highmem calculation better v3: added Fengguang Wu's suggestions fix zone_dirtyab