PM / devfreq: rockchip_dmc: add mutex lock for pmu register
authorFinley Xiao <finley.xiao@rock-chips.com>
Tue, 2 May 2017 12:30:13 +0000 (20:30 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 4 May 2017 07:01:17 +0000 (15:01 +0800)
commit9c76cd21b9c935645f9b4c61edfd1e8b5d0cbe4a
tree3a4bfc9d7c330022d5b9b43b8ac6c264790dc033
parenta670400e8bd6f49299e8c301fd841c1101f0c2e9
PM / devfreq: rockchip_dmc: add mutex lock for pmu register

As dmc may also assess register PMU_BUS_IDLE_REQ, we should prevent
pd driver and dmc driver assessing this register at the same time.

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