projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e92cf67
)
PM / devfreq: rockchip-dfi: disable irqs during accessing ddr monitor
author
Jianqun Xu
<jay.xu@rock-chips.com>
Fri, 19 Aug 2016 07:44:14 +0000
(15:44 +0800)
committer
Huang, Tao
<huangtao@rock-chips.com>
Thu, 25 Aug 2016 12:30:07 +0000
(20:30 +0800)
Change-Id: Ie4817a77fcb1283f37f41ab097f02ed7dc9cd18c
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
drivers/devfreq/event/rockchip-dfi.c
patch
|
blob
|
history
diff --git
a/drivers/devfreq/event/rockchip-dfi.c
b/drivers/devfreq/event/rockchip-dfi.c
index 43fcc5a7f5154ffd8ed33093dfd76a77b6028c86..cd9287faf8fb4c06ac33f39463261af6c46c7132 100644
(file)
--- a/
drivers/devfreq/event/rockchip-dfi.c
+++ b/
drivers/devfreq/event/rockchip-dfi.c
@@
-168,8
+168,11
@@
static int rockchip_dfi_get_event(struct devfreq_event_dev *edev,
{
struct rockchip_dfi *info = devfreq_event_get_drvdata(edev);
int busier_ch;
+ unsigned long flags;
+ local_irq_save(flags);
busier_ch = rockchip_dfi_get_busier_ch(edev);
+ local_irq_restore(flags);
edata->load_count = info->ch_usage[busier_ch].access;
edata->total_count = info->ch_usage[busier_ch].total;