drm/radeon: Use hweight32
authorAkinobu Mita <akinobu.mita@gmail.com>
Fri, 9 Nov 2012 12:10:41 +0000 (12:10 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Nov 2012 06:06:18 +0000 (16:06 +1000)
commitef8cf3a1c523afa499d15856e7db3844ad59d1fb
tree998f1c1afed540a6df8c8f61d5f58e32f70d9665
parent6311803b1294432ee680fec5e628efae0d485fa2
drm/radeon: Use hweight32

Use hweight32 instead of counting for each bit

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: David Airlie <airlied@linux.ie>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/r600_cp.c