Documented in 1 files:
Defined in 2 files as a prototype:
- drivers/cpufreq/cpufreq.c, line 87 (as a prototype)
- tools/power/cpupower/lib/cpufreq.h, line 191 (as a prototype)
Defined in 2 files as a function:
- drivers/cpufreq/cpufreq.c, line 2629 (as a function)
- tools/power/cpupower/lib/cpufreq.c, line 616 (as a function)
Referenced in 2 files:
Smatch caller information:
drivers/cpufreq/cpufreq.c cpufreq_init_policy() -> cpufreq_set_policy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | policy | 4096-ptr_max |
| PARAM_VALUE | 1 | new_gov | 0,4096-ptr_max |
| PARAM_VALUE | 1 | new_gov->owner | 0,4096-ptr_max |
| PARAM_VALUE | 1 | new_gov->owner->state | 0-1,3-u32max |
| PARAM_VALUE | 2 | new_pol | 0-2 |
| BUF_SIZE | 1 | new_gov | (-1)-0,104 |
| BUF_SIZE | 1 | new_gov | (-1)-0,104 |
| DATA_SOURCE | 0 | policy | $0 |
| FUZZY_MAX | 2 | new_pol | 0 |
drivers/cpufreq/cpufreq.c refresh_frequency_limits() -> cpufreq_set_policy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | policy | 4096-ptr_max |
| PARAM_VALUE | 0 | policy->kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| BUF_SIZE | 0 | policy | (-1),1576 |
| BUF_SIZE | 0 | policy | (-1),1576 |
| DATA_SOURCE | 0 | policy | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | 0 | &policy->rwsem |
drivers/cpufreq/cpufreq.c store_scaling_governor() -> cpufreq_set_policy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | policy | 4096-ptr_max |
| PARAM_VALUE | 1 | new_gov | 0 |
| PARAM_VALUE | 2 | new_pol | 1-2 |
| DATA_SOURCE | 0 | policy | $0 |
| DATA_SOURCE | 2 | new_pol | r cpufreq_parse_policy |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | 0 | &policy->rwsem | |
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct cpufreq_policy)->rwsem | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/cpufreq/cpufreq.c store_scaling_governor() -> cpufreq_set_policy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | policy | 4096-ptr_max |
| PARAM_VALUE | 1 | new_gov | 4096-ptr_max |
| PARAM_VALUE | 1 | new_gov->owner | 0,4096-ptr_max |
| PARAM_VALUE | 2 | new_pol | 0 |
| DATA_SOURCE | 0 | policy | $0 |
| DATA_SOURCE | 1 | new_gov | r cpufreq_parse_governor |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | 0 | &policy->rwsem | |
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct cpufreq_policy)->rwsem | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |