diff options
| author | Linus Walleij <[email protected]> | 2015-05-19 10:55:10 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2015-05-24 11:12:08 -0700 |
| commit | b5913d64366925c78cbe25e28a0599c89ef23bcd (patch) | |
| tree | 5a1ed6b3174e267619e4988f87453df1f13f2db2 /tools/perf/scripts/python | |
| parent | ec36005910c70678505b54d60e6df3e6faefb80f (diff) | |
coresight: tpiu: let runtime PM handle core clock
This uses runtime PM to manage the PCLK ("amba_pclk") instead
of screwing around with the framework by going in and taking
a copy from the amba device. The amba bus core will unprepare
and disable the clock when the device is unused when
CONFIG_PM is selected, else the clock will be always on.
Prior to this patch, as the AMBA primecell bus code enables
the PCLK, it would be left on after probe as
the clk_prepare_enable() and clk_disable_unprepare() was
called and thus just increase and decreas the refcount by
one, without it reaching zero and actually disabling the
clock. Now the runtime PM callbacks will make sure the PCLK
is properly disabled after probe.
Reviewed-by: Ulf Hansson <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Signed-off-by: Mathieu Poirier <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions