Re: [PATCH] watchdog: using u64 in get_sample_period()

2012-11-21 Thread Don Zickus
On Wed, Nov 21, 2012 at 06:56:07PM +0800, Chuansheng Liu 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: 0xEE6B 2800 > > case2: set watchdog_thresh is 20, > the sam

[PATCH] watchdog: using u64 in get_sample_period()

2012-11-20 Thread Chuansheng Liu
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: 0xEE6B 2800 case2: set watchdog_thresh is 20, the sample value will be: 0x1 DCD6 5000 >From case2, we need use u64 to express the samp