Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115331
b: refs/heads/master
c: a085460
h: refs/heads/master
i:
  115329: d53158a
  115327: 110aaa7
v: v3
  • Loading branch information
Harvey Harrison authored and Avi Kivity committed Oct 15, 2008
1 parent 121824d commit 2f7f24f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f095610aabb9d54617901aa734d2a6093f2000c
refs/heads/master: a08546001c2b0f584ffc81987340943a7d6d6acb
10 changes: 5 additions & 5 deletions trunk/arch/x86/kernel/pvclock.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ static unsigned pvclock_get_time_values(struct pvclock_shadow_time *dst,

unsigned long pvclock_tsc_khz(struct pvclock_vcpu_time_info *src)
{
u64 tsc_khz = 1000000ULL << 32;
u64 pv_tsc_khz = 1000000ULL << 32;

do_div(tsc_khz, src->tsc_to_system_mul);
do_div(pv_tsc_khz, src->tsc_to_system_mul);
if (src->tsc_shift < 0)
tsc_khz <<= -src->tsc_shift;
pv_tsc_khz <<= -src->tsc_shift;
else
tsc_khz >>= src->tsc_shift;
return tsc_khz;
pv_tsc_khz >>= src->tsc_shift;
return pv_tsc_khz;
}

cycle_t pvclock_clocksource_read(struct pvclock_vcpu_time_info *src)
Expand Down

0 comments on commit 2f7f24f

Please sign in to comment.