PM: domains: enable domain idle state accounting
authorLina Iyer <ilina@codeaurora.org>
Thu, 15 Oct 2020 20:47:22 +0000 (14:47 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 16 Oct 2020 15:53:22 +0000 (17:53 +0200)
commitc6a113b52302adcfadda63af81dc05f7a669fbc8
treec696c33f38bfb7145162c2cc211e77467eefdd76
parent505a70b783debaa84c7ebafa44a69a9401db4499
PM: domains: enable domain idle state accounting

To enable better debug of PM domains, keep a track of successful
and failing attempts to enter each domain idle state.

This statistics are exported in debugfs when reading the
idle_states node associated with each PM domain.

Signed-off-by: Lina Iyer <ilina@codeaurora.org>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c
include/linux/pm_domain.h