Prevent integer overflow after ~164 days of uptime.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
Ricardo M. Correia 2009-07-14 15:23:25 -07:00 committed by Brian Behlendorf
parent b11b08ed64
commit e004f04c8b
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ __gethrtime(void) {
#else
uint64_t j = get_jiffies_64();
return (hrtime_t)(j * NSEC_PER_SEC / HZ);
return (hrtime_t)(j * (NSEC_PER_SEC / HZ));
#endif
}
EXPORT_SYMBOL(__gethrtime);