Skip to content

Commit 6aab335

Browse files
committed
refactor: remove test code
1 parent ca0ec95 commit 6aab335

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/machine/uefi/clock.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package uefi
55
import (
66
"device/x86"
77
"sync"
8-
"unsafe"
98
)
109

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

3231
bs := systemTable.BootServices
3332

34-
DebugPrint("GetTscFrequency) EVENTPTR", uint64(uintptr(unsafe.Pointer(&event))))
3533
status = bs.CreateEvent(EVT_TIMER, TPL_CALLBACK, nil, nil, &event)
3634
if status != EFI_SUCCESS {
3735
DebugPrint("GetTscFrequency) CreateEvent Failed", uint64(status))
@@ -42,7 +40,6 @@ func GetTscFrequency() uint64 {
4240
st := x86.AsmReadRdtsc()
4341
status = bs.SetTimer(event, TimerPeriodic, 250*10000)
4442
if status != EFI_SUCCESS {
45-
DebugPrint("GetTscFrequency) SetTimer Failed", uint64(event))
4643
DebugPrint("GetTscFrequency) SetTimer Failed", uint64(status))
4744
return 0
4845
}

0 commit comments

Comments
 (0)