X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=kernel%2Fwatchdog.c;h=a8bc4d94e06dbbe32bd4bf4e1370c5270445214a;hb=fad79858d2f2d8d18c3a1a4d1f4bb87a0c49b1d1;hp=1d7bca7f4f527c2f25b741da9fc914980a0c43bb;hpb=f81f5e14de1203b9389aad383aa3f7b2a221efdd;p=pandora-kernel.git diff --git a/kernel/watchdog.c b/kernel/watchdog.c index 1d7bca7f4f52..a8bc4d94e06d 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c @@ -113,7 +113,7 @@ static unsigned long get_timestamp(int this_cpu) return cpu_clock(this_cpu) >> 30LL; /* 2^30 ~= 10^9 */ } -static unsigned long get_sample_period(void) +static u64 get_sample_period(void) { /* * convert watchdog_thresh from seconds to ns @@ -121,7 +121,7 @@ static unsigned long get_sample_period(void) * increment before the hardlockup detector generates * a warning */ - return get_softlockup_thresh() * (NSEC_PER_SEC / 5); + return get_softlockup_thresh() * ((u64)NSEC_PER_SEC / 5); } /* Commands for resetting the watchdog */