2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 06:34:11 +08:00
linux-next/drivers/opp
Jia-Ju Bai 4a823c0be8 opp: cpu: Replace GFP_ATOMIC with GFP_KERNEL in dev_pm_opp_init_cpufreq_table
After checking all possible call chains to
dev_pm_opp_init_cpufreq_table() here,
my tool finds that this function is never called in atomic context,
namely never in an interrupt handler or holding a spinlock.
And dev_pm_opp_init_cpufreq_table() calls dev_pm_opp_get_opp_count(),
which calls mutex_lock that can sleep.
It indicates that atmtcp_v_send() can call functions which may sleep.
Thus GFP_ATOMIC is not necessary, and it can be replaced with GFP_KERNEL.

This is found by a static analysis tool named DCNS written by myself.

Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2018-02-12 15:07:46 +05:30
..
core.c PM / OPP: Add dev_pm_opp_{un}register_get_pstate_helper() 2017-10-14 00:54:41 +02:00
cpu.c opp: cpu: Replace GFP_ATOMIC with GFP_KERNEL in dev_pm_opp_init_cpufreq_table 2018-02-12 15:07:46 +05:30
debugfs.c PM / OPP: Support updating performance state of device's power domain 2017-10-14 00:54:40 +02:00
Kconfig
Makefile PM / OPP: Add ti-opp-supply driver 2017-12-17 19:17:44 +01:00
of.c PM / OPP: add missing of_node_put() for of_get_cpu_node() 2017-10-14 00:49:41 +02:00
opp.h PM / OPP: Add dev_pm_opp_{un}register_get_pstate_helper() 2017-10-14 00:54:41 +02:00
ti-opp-supply.c PM / OPP: Make local function ti_opp_supply_set_opp() static 2017-12-28 12:48:16 +01:00