PM / devfreq: Lock CPU online/offline in rockchip_dmcfreq_target()
authorFinley Xiao <finley.xiao@rock-chips.com>
Mon, 15 May 2017 01:42:29 +0000 (09:42 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 17 May 2017 03:45:40 +0000 (11:45 +0800)
commit08e0c3fbe7cda3e0601ea730b102874e05114823
tree33101d4c99f49730631aa3f08f183eb28ab2eef9
parentf7770d6f9f8d0e7afc578e6d22cea62d834c0d78
PM / devfreq: Lock CPU online/offline in rockchip_dmcfreq_target()

To protect against races with concurrent CPU online/offline, call
get_online_cpus() before change frequency.

Change-Id: I5b97cd7eff6a1c4828ab30bc165fb2aa8b460bb3
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
drivers/devfreq/rockchip_dmc.c