As Chris Wilson noticed, my previous patch that did the refactoring as one big patch which moved everything at once was extremely difficult to review and maintain. So I split the same refactoring into a series of smaller patches, which move one subsystem at a time. As previously, this reduces the intel_display.c module by around 2800 lines while also simplifying future power-related developments. Eugeni Dodonov (5): drm/i915: move fbc-related functionality into intel_pm module drm/i915: move watermarks settings into intel_pm module drm/i915: move drps, rps and rc6-related functions to intel_pm drm/i915: move emon functionality into intel_pm module drm/i915: move clock gating functionality into intel_pm module drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/intel_display.c | 7803 +++++++++++----------------------- drivers/gpu/drm/i915/intel_drv.h | 72 + drivers/gpu/drm/i915/intel_pm.c | 2898 +++++++++++++ 4 files changed, 5432 insertions(+), 5342 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_pm.c -- 1.7.10