OSDN Git Service

PM / devfreq: events: extend events by type of counted data
authorLukasz Luba <l.luba@partner.samsung.com>
Wed, 5 Jun 2019 09:12:34 +0000 (11:12 +0200)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Sun, 25 Aug 2019 03:44:38 +0000 (12:44 +0900)
commit1dd62c66d345a4e5dcfa5a4e81999600515b4309
tree09ea3db9c7e22449f57eb6cb1d2b8a1d31168e99
parent0ae9c3213c2ca34f7e7ebad1436267778d37ba9f
PM / devfreq: events: extend events by type of counted data

This patch adds posibility to choose what type of data should be counted
by the PPMU counter. Now the type comes from DT where the event has been
defined. When there is no 'event-data-type' the default value is used,
which is 'read+write data in bytes'.
It is needed when you want to know not only read+write data bytes but
i.e. only write data in byte, or number of read requests, etc.

Signed-off-by: Lukasz Luba <l.luba@partner.samsung.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
[Updated property by MyungJoo. data_type --> event_type]
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/event/exynos-ppmu.c
include/linux/devfreq-event.h