On Thu, 2012-11-29 at 12:37 -0700, Shuah Khan wrote:
> In get_sample_period(), unsigned long is not enough:
>     
>       watchdog_thresh * 2 * (NSEC_PER_SEC / 5)
>     
> case1:
>       watchdog_thresh is 10 by default, the sample value will be: 0xEE6B2800
>     
> case2:
>      set watchdog_thresh is 20, the sample value will be: 0x1 DCD6 5000
>     
> In case2, we need use u64 to express the sample period.  Otherwise,
> changing the threshold thru proc often can not be successful.
> 
> Upstream commit id: 8ffeb9b0e6369135bf03a073514f571ef10606b9
> http://marc.info/?l=git-commits-head&m=135398615021572&w=2
> 
> Original patch thread: https://lkml.org/lkml/2012/11/20/788
> 
> Tested on stable 3.0.x, 3.4.x and 3.6.x releases.
> 
> Signed-off-by: liu chuansheng <[email protected]>
> Acked-by: Don Zickus <[email protected]>
> Signed-off-by: Andrew Morton <[email protected]>
> Signed-off-by: Linus Torvalds <[email protected]>
> Signed-off-by: Shuah Khan <[email protected]>
[...]

Queued up for 3.2, thanks.

Ben.

-- 
Ben Hutchings
It is easier to change the specification to fit the program than vice versa.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to