函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\lib\delay.c Create Date:2022-07-27 08:23:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:On some AMD platforms, MWAITX has a configurable 32-bit timer, that* counts with TSC frequency. The input value is the loop of the* counter, it will exit when the timer expires.

函数原型:static void delay_mwaitx(unsigned long __loops)

返回类型:void

参数:

类型参数名称
unsigned long__loops
95  loops等于__loops
101  如果loops恒等于0则返回
104  start等于dtsc_ordered() - read the current TSC in program order* rdtsc_ordered() returns the result of RDTSC as a 64-bit integer.* It is ordered like a load to a global in-memory counter. It should* be impossible to observe non-monotonic rdtsc_unordered() behavior
106  循环
107  delay等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u64, MWAITX_MAX_LOOPS, loops)
113  __monitorx(raw_cpu_ptr( & cpu_tss_rw), 0, 0)
120  MWAITX allows for a timer expiration to get the core out a wait state in* addition to the default MWAIT exit condition of a store appearing at a* monitored virtual address.* Registers:* MWAITX ECX[1]: enable timer if set
122  end等于dtsc_ordered() - read the current TSC in program order* rdtsc_ordered() returns the result of RDTSC as a 64-bit integer.* It is ordered like a load to a global in-memory counter. It should* be impossible to observe non-monotonic rdtsc_unordered() behavior
124  如果loops小于等于endstart退出
127  loops减等于endstart
129  start等于end