Skip to content

Commit

Permalink
refactor: remove test code
Browse files Browse the repository at this point in the history
  • Loading branch information
jclab-joseph committed Nov 21, 2023
1 parent ca0ec95 commit 6aab335
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/machine/uefi/clock.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package uefi
import (
"device/x86"
"sync"
"unsafe"
)

var calibrateMutex sync.Mutex
Expand All @@ -31,7 +30,6 @@ func GetTscFrequency() uint64 {

bs := systemTable.BootServices

DebugPrint("GetTscFrequency) EVENTPTR", uint64(uintptr(unsafe.Pointer(&event))))
status = bs.CreateEvent(EVT_TIMER, TPL_CALLBACK, nil, nil, &event)
if status != EFI_SUCCESS {
DebugPrint("GetTscFrequency) CreateEvent Failed", uint64(status))
Expand All @@ -42,7 +40,6 @@ func GetTscFrequency() uint64 {
st := x86.AsmReadRdtsc()
status = bs.SetTimer(event, TimerPeriodic, 250*10000)
if status != EFI_SUCCESS {
DebugPrint("GetTscFrequency) SetTimer Failed", uint64(event))
DebugPrint("GetTscFrequency) SetTimer Failed", uint64(status))
return 0
}
Expand Down

0 comments on commit 6aab335

Please sign in to comment.