]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use hweight8() for 8bit masks
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 21 Aug 2019 17:30:33 +0000 (20:30 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 23 Aug 2019 18:36:01 +0000 (21:36 +0300)
commit9466dd8bf6557ead808d8307c3024d92fa46a7c0
tree985f96a6727055fa68a5c5722cf1048eaf6da7c2
parent91b015b61a187e9dea0120ce186e9d7a3cd033f4
drm/i915: Use hweight8() for 8bit masks

Use hweight8() instead of hweight32() for 8bit masks. Doesn't actually
matter for us since the arch code will go for hweight32() anyway, but
maybe we stil want to do this for documentation purposes?

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190821173033.24123-5-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_pm.c