Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getTimecounter (0.24 sec)

  1. src/runtime/vdso_freebsd_x86.go

    	if mmapErr != 0 {
    		newP = ^uintptr(0)
    	}
    	if !atomic.Casuintptr(&hpetDevMap[idx], 0, newP) && mmapErr == 0 {
    		munmap(addr, physPageSize)
    	}
    }
    
    //go:nosplit
    func (th *vdsoTimehands) getTimecounter() (uint32, bool) {
    	switch th.algo {
    	case _VDSO_TH_ALGO_X86_TSC:
    		return th.getTSCTimecounter(), true
    	case _VDSO_TH_ALGO_X86_HPET:
    		return th.getHPETTimecounter()
    	default:
    		return 0, false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. src/runtime/vdso_freebsd.go

    		}
    
    		curr := atomic.Load(&timekeepSharedPage.current) // atomic_load_acq_32
    		th := &timehands[curr]
    		gen := atomic.Load(&th.gen) // atomic_load_acq_32
    		bt = th.offset
    
    		if tc, ok := th.getTimecounter(); !ok {
    			return zeroBintime
    		} else {
    			delta := (tc - th.offset_count) & th.counter_mask
    			bt.AddX(th.scale * uint64(delta))
    		}
    		if abs {
    			bt.Add(&th.boottime)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top