函数逻辑报告

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

函数名称:TSC based delay:

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

返回类型:void

参数:

类型参数名称
unsigned long__loops
54  loops等于__loops
57  禁止抢占()
58  cpu等于当前cpu ID()
59  bclock等于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
60  循环
61  now等于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
62  如果nowbclock大于等于loops退出
66  禁用抢占和中断()
67  REP NOP (PAUSE) is a good thing to insert into busy-wait loops.
68  禁止抢占()
80  loops减等于nowbclock
81  cpu等于当前cpu ID()
85  禁用抢占和中断()