]> err.no Git - systemd/commit
udevd: use a tighter loop for compare_devpath()
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Sat, 25 Oct 2008 16:01:21 +0000 (17:01 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Sat, 25 Oct 2008 17:41:52 +0000 (19:41 +0200)
commite25fa4faf5b4977cc90c87003a41107a920bbe4d
tree3b6648367cc8d48620170522c2bed9558a5fcc89
parent3e5c759543f57e6aabb8142ef194d5e4d45722d8
udevd: use a tighter loop for compare_devpath()

This crops up in my threaded udevd profiles from time to time.
It's not consistent - probably due to variations in the number
of concurrent events - but it can hit 4% user time and higher.

The change halves the user time spent in compare_devpath().

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
udev/udevd.c