diff options
| author | Juergen Gross <[email protected]> | 2023-09-27 08:29:02 +0000 |
|---|---|---|
| committer | Juergen Gross <[email protected]> | 2023-11-15 08:02:59 +0000 |
| commit | 5dd9ad32d7758b1a76742f394acf0eb3ac8a636a (patch) | |
| tree | e4a467a1b8f623e1c3c11916c927a4cf58dc19a7 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | xen/events: remove some simple helpers from events_base.c (diff) | |
| download | kernel-5dd9ad32d7758b1a76742f394acf0eb3ac8a636a.tar.gz kernel-5dd9ad32d7758b1a76742f394acf0eb3ac8a636a.zip | |
xen/events: drop xen_allocate_irqs_dynamic()
Instead of having a common function for allocating a single IRQ or a
consecutive number of IRQs, split up the functionality into the callers
of xen_allocate_irqs_dynamic().
This allows to handle any allocation error in xen_irq_init() gracefully
instead of panicing the system. Let xen_irq_init() return the irq_info
pointer or NULL in case of an allocation error.
Additionally set the IRQ into irq_info already at allocation time, as
otherwise the IRQ would be '0' (which is a valid IRQ number) until
being set.
Signed-off-by: Juergen Gross <[email protected]>
Reviewed-by: Oleksandr Tyshchenko <[email protected]>
Signed-off-by: Juergen Gross <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions
