Commit a4d8a0fe authored by Zeng Zhaoxiu's avatar Zeng Zhaoxiu Committed by Daniel Vetter

i915: Replace "hweight8(dev_priv->info.subslice_7eu[i]) != 1" with...

i915: Replace "hweight8(dev_priv->info.subslice_7eu[i]) != 1" with "!is_power_of_2(dev_priv->info.subslice_7eu[i])"
Signed-off-by: default avatarZeng Zhaoxiu <zhaoxiu.zeng@gmail.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1449397590-14292-1-git-send-email-zhaoxiu.zeng@gmail.com
parent 03a97d82
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
* *
*/ */
#include <linux/log2.h>
#include <drm/drmP.h> #include <drm/drmP.h>
#include "i915_drv.h" #include "i915_drv.h"
#include <drm/i915_drm.h> #include <drm/i915_drm.h>
...@@ -995,7 +996,7 @@ static int skl_tune_iz_hashing(struct intel_engine_cs *ring) ...@@ -995,7 +996,7 @@ static int skl_tune_iz_hashing(struct intel_engine_cs *ring)
* Only consider slices where one, and only one, subslice has 7 * Only consider slices where one, and only one, subslice has 7
* EUs * EUs
*/ */
if (hweight8(dev_priv->info.subslice_7eu[i]) != 1) if (!is_power_of_2(dev_priv->info.subslice_7eu[i]))
continue; continue;
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment