Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
- include/linux/energy_model.h, line 370 (as a function)
- kernel/power/energy_model.c, line 553 (as a function)
Referenced in 4 files:
- drivers/powercap/dtpm_cpu.c
- drivers/thermal/cpufreq_cooling.c, line 660
- kernel/power/energy_model.c
- kernel/sched/topology.c, line 346
Smatch caller information:
drivers/thermal/cpufreq_cooling.c of_cpufreq_cooling_register() -> em_cpu_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cpu | 0-8192 |
| STR_LEN | 0 | cpu | (-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &sp->mutex |
drivers/powercap/dtpm_cpu.c __dtpm_cpu_setup() -> em_cpu_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cpu | 0-64 |
| CAPPED_DATA | 0 | cpu | 1 |
| DATA_SOURCE | 0 | cpu | $0 |
| CONSTRAINT | 0 | cpu | <3035 |
| HALF_LOCKED2 | global &dtpm_lock |
drivers/powercap/dtpm_cpu.c get_pd_power_uw() -> em_cpu_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex |
drivers/powercap/dtpm_cpu.c set_pd_power_limit() -> em_cpu_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex |
drivers/powercap/dtpm_cpu.c update_pd_power_uw() -> em_cpu_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
kernel/power/energy_model.c em_dev_register_pd_no_update() -> em_cpu_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cpu | 0-64 |
| CAPPED_DATA | 0 | cpu | 1 |
| DATA_SOURCE | 0 | cpu | r find_next_bit |
| CONSTRAINT | 0 | cpu | <3035 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &em_pd_mutex |
kernel/sched/build_utility.c pd_init() -> em_cpu_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cpu | 0-64 |
| CAPPED_DATA | 0 | cpu | 1 |
| DATA_SOURCE | 0 | cpu | $0 |
| CONSTRAINT | 0 | cpu | <3035 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &sched_domains_mutex | ||
| HALF_LOCKED2 | global &cpuset_mutex |