Re: [PATCH] ARM: timer: Shutdown clock event device when stopping local timer

2013-04-02 Thread Ning Jiang
2013/4/1 Ning Jiang : > 2013/4/1 Daniel Lezcano : >> On 03/29/2013 10:24 AM, ning.n.ji...@gmail.com wrote: >>> From: Ning Jiang >>> >>> Currently there are two problems when we try to stop local timer. >>> First, it calls set_mode function directly so mode state is not >>> updated for the clock ev

Re: [PATCH] ARM: timer: Shutdown clock event device when stopping local timer

2013-03-31 Thread Ning Jiang
2013/4/1 Daniel Lezcano : > On 03/29/2013 10:24 AM, ning.n.ji...@gmail.com wrote: >> From: Ning Jiang >> >> Currently there are two problems when we try to stop local timer. >> First, it calls set_mode function directly so mode state is not >> updated for the clock event device. Second, it makes t

Re: [PATCH] ARM: timer: Shutdown clock event device when stopping local timer

2013-03-31 Thread Ning Jiang
2013/4/1 Daniel Lezcano : > On 03/29/2013 10:24 AM, ning.n.ji...@gmail.com wrote: >> From: Ning Jiang >> >> Currently there are two problems when we try to stop local timer. >> First, it calls set_mode function directly so mode state is not >> updated for the clock event device. Second, it makes t

Re: [PATCH] ARM: timer: Shutdown clock event device when stopping local timer

2013-03-31 Thread Daniel Lezcano
On 03/29/2013 10:24 AM, ning.n.ji...@gmail.com wrote: > From: Ning Jiang > > Currently there are two problems when we try to stop local timer. > First, it calls set_mode function directly so mode state is not > updated for the clock event device. Second, it makes the device > unused instead of sh

Re: [PATCH] ARM: timer: Shutdown clock event device when stopping local timer

2013-03-31 Thread Daniel Lezcano
On 03/29/2013 10:24 AM, ning.n.ji...@gmail.com wrote: > From: Ning Jiang > > Currently there are two problems when we try to stop local timer. > First, it calls set_mode function directly so mode state is not > updated for the clock event device. Second, it makes the device > unused instead of sh

Re: [PATCH] ARM: timer: Shutdown clock event device when stopping local timer

2013-03-31 Thread Ning Jiang
2013/3/30 Ning Jiang : > 2013/3/30 Russell King - ARM Linux : >> On Sat, Mar 30, 2013 at 05:57:38PM +0800, Ning Jiang wrote: >>> 2013/3/30 Stephen Boyd : >>> > On 03/29/13 02:24, ning.n.ji...@gmail.com wrote: >>> >> From: Ning Jiang >>> >> >>> >> Currently there are two problems when we try to sto

Re: [PATCH] ARM: timer: Shutdown clock event device when stopping local timer

2013-03-30 Thread Ning Jiang
2013/3/30 Russell King - ARM Linux : > On Sat, Mar 30, 2013 at 05:57:38PM +0800, Ning Jiang wrote: >> 2013/3/30 Stephen Boyd : >> > On 03/29/13 02:24, ning.n.ji...@gmail.com wrote: >> >> From: Ning Jiang >> >> >> >> Currently there are two problems when we try to stop local timer. >> >> First, it

Re: [PATCH] ARM: timer: Shutdown clock event device when stopping local timer

2013-03-30 Thread Russell King - ARM Linux
On Sat, Mar 30, 2013 at 05:57:38PM +0800, Ning Jiang wrote: > 2013/3/30 Stephen Boyd : > > On 03/29/13 02:24, ning.n.ji...@gmail.com wrote: > >> From: Ning Jiang > >> > >> Currently there are two problems when we try to stop local timer. > >> First, it calls set_mode function directly so mode stat

Re: [PATCH] ARM: timer: Shutdown clock event device when stopping local timer

2013-03-30 Thread Ning Jiang
2013/3/30 Stephen Boyd : > On 03/29/13 02:24, ning.n.ji...@gmail.com wrote: >> From: Ning Jiang >> >> Currently there are two problems when we try to stop local timer. >> First, it calls set_mode function directly so mode state is not >> updated for the clock event device. Second, it makes the dev

Re: [PATCH] ARM: timer: Shutdown clock event device when stopping local timer

2013-03-29 Thread Stephen Boyd
On 03/29/13 02:24, ning.n.ji...@gmail.com wrote: > From: Ning Jiang > > Currently there are two problems when we try to stop local timer. > First, it calls set_mode function directly so mode state is not > updated for the clock event device. Second, it makes the device > unused instead of shutdown

[PATCH] ARM: timer: Shutdown clock event device when stopping local timer

2013-03-29 Thread ning.n.jiang
From: Ning Jiang Currently there are two problems when we try to stop local timer. First, it calls set_mode function directly so mode state is not updated for the clock event device. Second, it makes the device unused instead of shutdown. A subtle error will happen because of it. When a cpu is p