Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345325
b: refs/heads/master
c: ef8cf3a
h: refs/heads/master
i:
  345323: bf6f792
v: v3
  • Loading branch information
Akinobu Mita authored and Dave Airlie committed Nov 20, 2012
1 parent e1cf586 commit f819663
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6311803b1294432ee680fec5e628efae0d485fa2
refs/heads/master: ef8cf3a1c523afa499d15856e7db3844ad59d1fb
8 changes: 1 addition & 7 deletions trunk/drivers/gpu/drm/radeon/r600.c
Original file line number Diff line number Diff line change
Expand Up @@ -1424,13 +1424,7 @@ u32 r6xx_remap_render_backend(struct radeon_device *rdev,

int r600_count_pipe_bits(uint32_t val)
{
int i, ret = 0;

for (i = 0; i < 32; i++) {
ret += val & 1;
val >>= 1;
}
return ret;
return hweight32(val);
}

static void r600_gpu_init(struct radeon_device *rdev)
Expand Down
7 changes: 1 addition & 6 deletions trunk/drivers/gpu/drm/radeon/r600_cp.c
Original file line number Diff line number Diff line change
Expand Up @@ -721,12 +721,7 @@ static u32 r600_get_tile_pipe_to_backend_map(u32 num_tile_pipes,

static int r600_count_pipe_bits(uint32_t val)
{
int i, ret = 0;
for (i = 0; i < 32; i++) {
ret += val & 1;
val >>= 1;
}
return ret;
return hweight32(val);
}

static void r600_gfx_init(struct drm_device *dev,
Expand Down

0 comments on commit f819663

Please sign in to comment.