38
38
// Default CPU cooling devices, which are not part of thermal sysfs
39
39
// Since non trivial initialization is not supported, we init all fields even if they are not needed
40
static cooling_dev_t cpu_def_cooling_devices[] = {
42
.mask = CDEV_DEF_BIT_UNIT_VAL | CDEV_DEF_BIT_READ_BACK | CDEV_DEF_BIT_MIN_STATE | CDEV_DEF_BIT_STEP,
43
.index = 0, .unit_val = ABSOULUTE_VALUE, .min_state = 0, .max_state = 0, .inc_dec_step = 5,
44
.read_back = false, .auto_down_control = false,
45
.type_string = "intel_powerclamp", .path_str = "",
46
.debounce_interval = 4, .pid_enable = false,
47
.pid = {0.0, 0.0, 0.0}},
40
/* Some security scan handler can't parse, the following block and generate unnecessary errors.
41
* hiding good ones. So init in old style compatible to C++
43
static cooling_dev_t cpu_def_cooling_devices[] = {
45
.mask = CDEV_DEF_BIT_UNIT_VAL | CDEV_DEF_BIT_READ_BACK | CDEV_DEF_BIT_MIN_STATE | CDEV_DEF_BIT_STEP,
46
.index = 0, .unit_val = ABSOULUTE_VALUE, .min_state = 0, .max_state = 0, .inc_dec_step = 5,
47
.read_back = false, .auto_down_control = false,
48
.type_string = "intel_powerclamp", .path_str = "",
49
.debounce_interval = 4, .pid_enable = false,
50
.pid = {0.0, 0.0, 0.0}},
53
static cooling_dev_t cpu_def_cooling_devices[] = { { true, CDEV_DEF_BIT_UNIT_VAL
54
| CDEV_DEF_BIT_READ_BACK | CDEV_DEF_BIT_MIN_STATE | CDEV_DEF_BIT_STEP,
55
0, ABSOULUTE_VALUE, 0, 0, 5, false, false, "intel_powerclamp", "", 4,
56
false, { 0.0, 0.0, 0.0 } } };
50
58
cthd_engine_default::~cthd_engine_default() {
51
59
if (parser_init_done)