]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
um: Simplify IRQ handling code
authorJohannes Berg <johannes.berg@intel.com>
Wed, 2 Dec 2020 11:59:56 +0000 (12:59 +0100)
committerRichard Weinberger <richard@nod.at>
Sun, 13 Dec 2020 21:22:33 +0000 (22:22 +0100)
commit3032b94587c78c52173a9b8488d15528481ffcdb
tree922c70111b855b6009c0464becc1bdf361467e7d
parent2fccfcc0c742625c01e6a3913f4fc2d330541fbb
um: Simplify IRQ handling code

Reduce dynamic allocations (and thereby cache misses) by simply
embedding the registration data for IRQs in the irq_entry, we
never supported these being really dynamic anyway as only one
was ever allowed ("Trying to reregister ...").

Lockless behaviour is preserved by removing the FD from the poll
set appropriately, but we use reg->events to indicate whether or
not this entry is used, rather than dynamically allocating them.

Also port the list of IRQ entries to list_head instead of the
current open-coded singly-linked list implementation, just for
sanity.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-By: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/kernel/irq.c