summaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorYury Norov <yury.norov@gmail.com>2022-01-23 21:38:55 +0300
committerYury Norov <yury.norov@gmail.com>2022-06-03 16:52:57 +0300
commit95e3a97387d6c396172f944b45bd515c7d1e8bc2 (patch)
treeedc655fb6e42adaf296143e24830ef8357662c77 /drivers/usb/cdns3/cdns3-debug.h
parent99248e351a2712154d1120ab003d89635c4e8e72 (diff)
downloadlinux-95e3a97387d6c396172f944b45bd515c7d1e8bc2.tar.xz
clocksource: replace cpumask_weight with cpumask_empty in clocksource.c
clocksource_verify_percpu() calls cpumask_weight() to check if any bit of a given cpumask is set. We can do it more efficiently with cpumask_empty() because cpumask_empty() stops traversing the cpumask as soon as it finds first set bit, while cpumask_weight() counts all bits unconditionally. Signed-off-by: Yury Norov <yury.norov@gmail.com>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions