android_kernel_xiaomi_sm8350/arch
Paolo 'Blaisorblade' Giarrusso dbce706e25 [PATCH] uml: add and use generic hw_controller_type->release
With Chris Wedgwood <cw@f00f.org>

Currently UML must explicitly call the UML-specific
free_irq_by_irq_and_dev() for each free_irq call it's done.

This is needed because ->shutdown and/or ->disable are only called when the
last "action" for that irq is removed.

Instead, for UML shared IRQs (UML IRQs are very often, if not always,
shared), for each dev_id some setup is done, which must be cleared on the
release of that fd.  For instance, for each open console a new instance
(i.e.  new dev_id) of the same IRQ is requested().

Exactly, a fd is stored in an array (pollfds), which is after read by a
host thread and passed to poll().  Each event registered by poll() triggers
an interrupt.  So, for each free_irq() we must remove the corresponding
host fd from the table, which we do via this -release() method.

In this patch we add an appropriate hook for this, and remove all uses of
it by pointing the hook to the said procedure; this is safe to do since the
said procedure.

Also some cosmetic improvements are included.

This is heavily based on some work by Chris Wedgwood, which however didn't
get the patch merged for something I'd call a "misunderstanding" (the need
for this patch wasn't cleanly explained, thus adding the generic hook was
felt as undesirable).

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
CC: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-21 19:07:32 -07:00
..
alpha [PATCH] alpha/osf_sys: use helper functions to convert between tv and jiffies 2005-05-17 07:59:21 -07:00
arm [PATCH] Avoiding mmap fragmentation 2005-06-21 18:46:16 -07:00
arm26 [PATCH] Driver Core: arch: update device attribute callbacks 2005-06-20 15:15:32 -07:00
cris
frv [PATCH] mm: remove PG_highmem 2005-06-21 18:46:17 -07:00
h8300 [PATCH] h8300 sleep problem 2005-05-31 14:54:17 -07:00
i386 [PATCH] kbuild: display compile version 2005-06-21 18:46:22 -07:00
ia64 [PATCH] ioc4: CONFIG split 2005-06-21 18:46:32 -07:00
m32r [PATCH] m32r: Update defconfig files 2005-06-21 19:07:31 -07:00
m68k [PATCH] M68k: Mark Sun-3 NCR5380 SCSI broken 2005-06-12 20:43:22 -07:00
m68knommu [PATCH] m68knommu: fix scheduling and race problems in idle loop 2005-06-03 08:16:17 -07:00
mips [PATCH] mm: remove PG_highmem 2005-06-21 18:46:17 -07:00
parisc [PATCH] Driver Core: arch: update device attribute callbacks 2005-06-20 15:15:32 -07:00
ppc [PATCH] ppc32: Kill embedded system.map, use kallsyms 2005-06-21 18:46:26 -07:00
ppc64 [PATCH] ppc64: set/clear SMT capable bit at boot 2005-06-21 18:46:31 -07:00
s390 [PATCH] s390: deadlock in appldata 2005-06-04 17:13:00 -07:00
sh [PATCH] Avoiding mmap fragmentation 2005-06-21 18:46:16 -07:00
sh64 [PATCH] Hugepage consolidation 2005-06-21 18:46:15 -07:00
sparc [PATCH] mm: remove PG_highmem 2005-06-21 18:46:17 -07:00
sparc64 [PATCH] Avoiding mmap fragmentation 2005-06-21 18:46:16 -07:00
um [PATCH] uml: add and use generic hw_controller_type->release 2005-06-21 19:07:32 -07:00
v850
x86_64 [PATCH] Avoiding mmap fragmentation 2005-06-21 18:46:16 -07:00