Skip to content

Commit

Permalink
Fix PIT var and ret
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Philipson <[email protected]>
  • Loading branch information
rossphilipson committed Aug 6, 2021
1 parent ed9d23b commit d43d4f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions misc/pit_tsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ static void pit_sync_period(void)

void pit_calibrate(void)
{
u8 val, latch;
u8 val;
u16 latch;
u64 start, end;

/*
Expand Down Expand Up @@ -164,7 +165,7 @@ void mdelay(u32 ms)
u64 ctsc, ftsc;

if (!ms)
return 0;
return;

ctsc = __rdtsc();
ftsc = ms * ticks_per_ms;
Expand Down

0 comments on commit d43d4f3

Please sign in to comment.