Re: [PATCH -tip/master] x86: io-apic - interrupt remapping fix
From: Cyrill Gorcunov
Date: Mon Sep 22 2008 - 06:37:45 EST
[Ingo Molnar - Mon, Sep 22, 2008 at 12:05:32PM +0200]
|
| * Yinghai Lu <yhlu.kernel@xxxxxxxxx> wrote:
|
| > On Mon, Sep 22, 2008 at 2:04 AM, Ingo Molnar <mingo@xxxxxxx> wrote:
| >
| > BTW
| >
| > x2apic and IRmapping make io_apic.c and apic.c ugly.
|
| yes. Any ideas how to clean it up some more?
|
| the kmalloc looks quite ugly, especially with this kfree() teardown
| sequence we have now.
|
| Ingo
|
yes Ingo - it's ugly but I had not that many choises:
1) allocate/deallocate if failed inside same routine
2) deallocate in restore_IO_APIC_setup (which would be much more
ugly and obscure)
3) allocate and deallocate in completely separated routines - didn't
even tried :)
So I've stopped on (1) 'case it was less_changing_the_sources patch.
- Cyrill -
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/