[PATCH] drm/radeon: Use hweight32

2012-11-12 Thread Akinobu Mita
Use hweight32 instead of counting for each bit Signed-off-by: Akinobu Mita Cc: David Airlie Cc: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/radeon/r600.c| 8 +--- drivers/gpu/drm/radeon/r600_cp.c | 7 +-- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/driver

[PATCH] drm/radeon: Use hweight32

2012-11-09 Thread Akinobu Mita
Use hweight32 instead of counting for each bit Signed-off-by: Akinobu Mita Cc: David Airlie Cc: dri-devel at lists.freedesktop.org --- drivers/gpu/drm/radeon/r600.c| 8 +--- drivers/gpu/drm/radeon/r600_cp.c | 7 +-- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/dri