diff options
author | Imre Deak <imre.deak@intel.com> | 2013-11-25 17:15:30 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-11-26 20:06:11 +0100 |
commit | 6f3ef5ddabc0ad321678ee091c75b1f082a42707 (patch) | |
tree | 7a7acf9d5952f21d5062fc3508df0eaf769863e3 /fs/btrfs/dev-replace.c | |
parent | c1ca727f89450cbc560af93045d57a186b83b0dc (diff) |
drm/i915: add always-on power wells instead of special casing them
Instead of using a separate function to check whether a power domain is
is always on, add an always-on power well covering all these power
domains and do the usual get/put on these unconditionally. Since we
don't assign a .set handler for these the get/put won't have any effect
besides the adjusted refcount.
This makes the code more readable and provides debug info also on the
use of always-on power wells (once the relevant debugfs entry is added.)
v3: make is_always_on to be bool instead of a bit field (Paulo)
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Paulo Zanoni <paulo.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions