Function report |
Source Code:arch\x86\kernel\cpu\umwait.c |
Create Date:2022-07-28 07:56:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:enable_c02_store
Proto:static ssize_t enable_c02_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct device * | dev | |
struct device_attribute * | attr | |
const char * | buf | |
size_t | count |
151 | mutex_lock( & Serialize access to umwait_control_cached and IA32_UMWAIT_CONTROL MSR in* the sysfs write functions.) |
153 | ctrl = READ_ONCE(Cache IA32_UMWAIT_CONTROL MSR. This is a systemwide control. By default,* umwait max time is 100000 in TSC-quanta and C0.2 is enabled) |
154 | If c02_enable != When bit 0 in IA32_UMWAIT_CONTROL MSR is 1, C0.2 is disabled.* Otherwise, C0.2 is enabled. Then umwait_update_control(ctrl, c02_enable) |
157 | mutex_unlock( & Serialize access to umwait_control_cached and IA32_UMWAIT_CONTROL MSR in* the sysfs write functions.) |
159 | Return count |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |