]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: switch xe_pagefault_queue_init() to using bitmap_weighted_or()
authorYury Norov <ynorov@nvidia.com>
Mon, 2 Mar 2026 01:11:58 +0000 (20:11 -0500)
committerYury Norov <ynorov@nvidia.com>
Thu, 9 Apr 2026 17:28:05 +0000 (13:28 -0400)
commitac679a6e0fccab0e30ea04c97a3a0713b8b722ae
tree920c8801154a23c350e2518e6d6245acdf72508a
parent82e68aa4a6b16aa060d5044116dac957631cf6f0
drm/xe: switch xe_pagefault_queue_init() to using bitmap_weighted_or()

The function calls bitmap_or() immediately followed by bitmap_weight().
Switch to using the dedicated bitmap_weighted_or() and save one bitmap
traverse.

Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Yury Norov <ynorov@nvidia.com>
drivers/gpu/drm/xe/xe_pagefault.c