函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:tsx_init

函数原型:void __init tsx_init(void)

返回类型:void

参数:

86  char arg[5] = {}
89  如果非tsx_ctrl_is_supported()则返回
92  ret等于命令行查找参数
93  如果ret大于等于0则
94  如果非字符串比较
96  否则如果非字符串比较
98  否则如果非字符串比较
100  否则
102  打印错误信息("tsx: invalid option, defaulting to off\n")
104  否则
106  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_X86_INTEL_TSX_MODE_AUTO)则tsx_ctrl_state等于x86_get_tsx_auto_mode()
108  否则如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_X86_INTEL_TSX_MODE_OFF)则tsx_ctrl_state等于TSX_CTRL_DISABLE
110  否则tsx_ctrl_state等于TSX_CTRL_ENABLE
114  如果tsx_ctrl_state恒等于TSX_CTRL_DISABLE
115  tsx_disable()
122  setup_clear_cpu_cap(Restricted Transactional Memory )
123  setup_clear_cpu_cap(Hardware Lock Elision )
124  否则如果tsx_ctrl_state恒等于TSX_CTRL_ENABLE
132  tsx_enable()
138  setup_force_cpu_cap(Restricted Transactional Memory )
139  setup_force_cpu_cap(Hardware Lock Elision )
调用者
名称描述
identify_boot_cpu