drm/amdkfd: Fix signal handling performance again
authorFelix Kuehling <Felix.Kuehling@amd.com>
Tue, 1 May 2018 21:56:08 +0000 (17:56 -0400)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 1 May 2018 21:56:08 +0000 (17:56 -0400)
commiteeb27b7eb3826c23cc5688c47845e7309f20fc32
treee2bb326aa927e3d5f45622c5e373af2dfa180a36
parentf8ea72d097965617bba0d6773fd29d44070c5e1a
drm/amdkfd: Fix signal handling performance again

It turns out that idr_for_each_entry is really slow compared to just
iterating over the slots. Based on measurements the difference is
estimated to be about a factor 64. That means using idr_for_each_entry
is only worth it with very few allocated events.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_events.c