Defined in 1 files as a function:
Referenced in 4 files:
- drivers/cpufreq/acpi-cpufreq.c, line 467
- drivers/cpufreq/mediatek-cpufreq-hw.c, line 176
- drivers/cpufreq/powernv-cpufreq.c, line 1023
- include/linux/cpufreq.h, line 874
Smatch caller information:
drivers/cpufreq/cpufreq.c find_index_l() -> cpufreq_table_find_index_dl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | policy | 4096-ptr_max |
| PARAM_VALUE | 0 | policy->freq_table | 1-u64max |
| BUF_SIZE | 0 | policy | (-1),1576 |
| BUF_SIZE | 0 | policy | (-1),1576 |
| BUF_SIZE | 0 | policy->governor | (-1)-0,104 |
| CAPPED_DATA | 1 | target_freq | 1 |
| DATA_SOURCE | 0 | policy | $0 |
| DATA_SOURCE | 1 | target_freq | $1 [m] |
| DATA_SOURCE | 2 | efficiencies | $4 |
| STR_LEN | 0 | policy | (-1),8-9,11-29,31-34,38 |
| STR_LEN | 0 | policy | (-1),8-9,11-29,31-34,38 |
| STR_LEN | 0 | policy->cpu | (-1) |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | policy->clk->core->req_rate | |
| NO_OVERFLOW_SIMPLE | 0 | policy->cur | |
| NO_OVERFLOW_SIMPLE | 0 | policy->max | |
| NO_OVERFLOW_SIMPLE | 0 | policy->min | |
| NO_OVERFLOW_SIMPLE | 1 | target_freq | |
| HALF_LOCKED2 | 0 | &policy->rwsem |
drivers/cpufreq/acpi-cpufreq.c acpi_cpufreq_fast_switch() -> cpufreq_table_find_index_dl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | policy | 4096-ptr_max |
| PARAM_VALUE | 2 | efficiencies | 0 |
| DATA_SOURCE | 0 | policy | $0 |
| DATA_SOURCE | 1 | target_freq | $1 |
| PARAM_COMPARE | 0 | policy->cached_target_freq | != $1 |
| PARAM_COMPARE | 1 | target_freq | != $0->cached_target_freq |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &sg_policy->update_lock |
drivers/cpufreq/cpufreq_ondemand.c find_index_l() -> cpufreq_table_find_index_dl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | policy | 4096-ptr_max |
| PARAM_VALUE | 0 | policy->freq_table | 1-u64max |
| DATA_SOURCE | 0 | policy | $0 |
| DATA_SOURCE | 1 | target_freq | $1 [m] |
| DATA_SOURCE | 2 | efficiencies | $4 |
| LOCK2 | &policy_dbs->update_mutex | ||
| LOCK2 | &pool->lock | ||
| TYPE_LOCK | (struct policy_dbs_info)->update_mutex |
drivers/cpufreq/mediatek-cpufreq-hw.c mtk_cpufreq_hw_fast_switch() -> cpufreq_table_find_index_dl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | policy | 4096-ptr_max |
| PARAM_VALUE | 2 | efficiencies | 0 |
| DATA_SOURCE | 0 | policy | $0 |
| DATA_SOURCE | 1 | target_freq | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &sg_policy->update_lock |