File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,8 @@ static u64 notrace read_hv_clock_tsc_cs(struct clocksource *arg)
343
343
344
344
static u64 read_hv_sched_clock_tsc (void )
345
345
{
346
- return read_hv_clock_tsc () - hv_sched_clock_offset ;
346
+ return (read_hv_clock_tsc () - hv_sched_clock_offset ) *
347
+ (NSEC_PER_SEC / HV_CLOCK_HZ );
347
348
}
348
349
349
350
static void suspend_hv_clock_tsc (struct clocksource * arg )
@@ -398,7 +399,8 @@ static u64 notrace read_hv_clock_msr_cs(struct clocksource *arg)
398
399
399
400
static u64 read_hv_sched_clock_msr (void )
400
401
{
401
- return read_hv_clock_msr () - hv_sched_clock_offset ;
402
+ return (read_hv_clock_msr () - hv_sched_clock_offset ) *
403
+ (NSEC_PER_SEC / HV_CLOCK_HZ );
402
404
}
403
405
404
406
static struct clocksource hyperv_cs_msr = {
You can’t perform that action at this time.
0 commit comments