mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Internal change.
PiperOrigin-RevId: 397813331
This commit is contained in:
@@ -30,9 +30,9 @@ func getDefaultArchOverheadCycles() TSCValue {
|
||||
// frqRatio. defaultOverheadCycles of ARM equals to that on
|
||||
// x86 devided by frqRatio
|
||||
cntfrq := getCNTFRQ()
|
||||
frqRatio := 1000000000 / cntfrq
|
||||
frqRatio := 1000000000 / float64(cntfrq)
|
||||
overheadCycles := (1 * 1000) / frqRatio
|
||||
return overheadCycles
|
||||
return TSCValue(overheadCycles)
|
||||
}
|
||||
|
||||
// defaultOverheadTSC is the default estimated syscall overhead in TSC cycles.
|
||||
|
||||
Reference in New Issue
Block a user