|
@@ -158,13 +158,13 @@ EXPORT_SYMBOL_GPL(ppc_tb_freq);
|
|
|
#ifdef CONFIG_VIRT_CPU_ACCOUNTING
|
|
|
/*
|
|
|
* Factors for converting from cputime_t (timebase ticks) to
|
|
|
- * jiffies, milliseconds, seconds, and clock_t (1/USER_HZ seconds).
|
|
|
+ * jiffies, microseconds, seconds, and clock_t (1/USER_HZ seconds).
|
|
|
* These are all stored as 0.64 fixed-point binary fractions.
|
|
|
*/
|
|
|
u64 __cputime_jiffies_factor;
|
|
|
EXPORT_SYMBOL(__cputime_jiffies_factor);
|
|
|
-u64 __cputime_msec_factor;
|
|
|
-EXPORT_SYMBOL(__cputime_msec_factor);
|
|
|
+u64 __cputime_usec_factor;
|
|
|
+EXPORT_SYMBOL(__cputime_usec_factor);
|
|
|
u64 __cputime_sec_factor;
|
|
|
EXPORT_SYMBOL(__cputime_sec_factor);
|
|
|
u64 __cputime_clockt_factor;
|
|
@@ -182,8 +182,8 @@ static void calc_cputime_factors(void)
|
|
|
|
|
|
div128_by_32(HZ, 0, tb_ticks_per_sec, &res);
|
|
|
__cputime_jiffies_factor = res.result_low;
|
|
|
- div128_by_32(1000, 0, tb_ticks_per_sec, &res);
|
|
|
- __cputime_msec_factor = res.result_low;
|
|
|
+ div128_by_32(1000000, 0, tb_ticks_per_sec, &res);
|
|
|
+ __cputime_usec_factor = res.result_low;
|
|
|
div128_by_32(1, 0, tb_ticks_per_sec, &res);
|
|
|
__cputime_sec_factor = res.result_low;
|
|
|
div128_by_32(USER_HZ, 0, tb_ticks_per_sec, &res);
|