Displaying 1 result from an estimated 1 matches for "new_shift".
Did you mean:
low_shift
2007 Aug 30
0
[PATCH][Retry 1] 1/4: cpufreq/PowerNow! in Xen: Xen timer changes
...}
+/* calculate new tsc_scale factor based on ratio of new and old frequency
+ * and update time stamps to restart the period for the next calibration
+ */
+void do_change_freq(struct vcpu_time_info *info, unsigned int old, unsigned int new, int cpu_num)
+{
+ u64 new_mult, curr_tsc;
+ s8 new_shift;
+ struct cpu_time *t;
+
+ t = &this_cpu(cpu_time);
+ new_mult = info->tsc_to_system_mul;
+ do_div(new_mult, new / 1000);
+ new_mult *= (old / 1000);
+ new_shift = info->tsc_shift;
+ while (new_mult > (1LL <<32)) {
+ new_shift += 1;
+ new_mult...