diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/ce_gv11b.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/ce_gv11b.c b/drivers/gpu/nvgpu/gv11b/ce_gv11b.c index 8bf636b1..4f611799 100644 --- a/drivers/gpu/nvgpu/gv11b/ce_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/ce_gv11b.c | |||
@@ -36,7 +36,7 @@ u32 gv11b_ce_get_num_pce(struct gk20a *g) | |||
36 | u32 num_pce; | 36 | u32 num_pce; |
37 | u32 ce_pce_map = gk20a_readl(g, ce_pce_map_r()); | 37 | u32 ce_pce_map = gk20a_readl(g, ce_pce_map_r()); |
38 | 38 | ||
39 | num_pce = get_count_order(ce_pce_map) + 1; | 39 | num_pce = hweight32(ce_pce_map); |
40 | nvgpu_log_info(g, "num PCE: %d", num_pce); | 40 | nvgpu_log_info(g, "num PCE: %d", num_pce); |
41 | return num_pce; | 41 | return num_pce; |
42 | } | 42 | } |