From: Suresh Siddha <suresh.b.siddha@intel.com>
To: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>, Yinghai Lu <yhlu.kernel@gmail.com>,
"Siddha, Suresh B" <suresh.b.siddha@intel.com>,
LKML <linux-kernel@vger.kernel.org>,
"Maciej W. Rozycki" <macro@linux-mips.org>
Subject: Re: [PATCH -tip/master] x86: io-apic - interrupt remapping fix
Date: Mon, 22 Sep 2008 18:19:08 -0700 [thread overview]
Message-ID: <20080923011908.GC25045@linux-os.sc.intel.com> (raw)
In-Reply-To: <20080922103736.GA22024@localhost>
On Mon, Sep 22, 2008 at 03:37:36AM -0700, Cyrill Gorcunov wrote:
> [Ingo Molnar - Mon, Sep 22, 2008 at 12:05:32PM +0200]
> |
> | * Yinghai Lu <yhlu.kernel@gmail.com> wrote:
> |
> | > On Mon, Sep 22, 2008 at 2:04 AM, Ingo Molnar <mingo@elte.hu> 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.
I think Yinghai is complaing about other code aswell (HAVE_X2APIC etc).
Probably I should move some of the x2apic/interrupt-remapping code
setup out of io_apic.c and apic.c to a common file.
thanks,
suresh
next prev parent reply other threads:[~2008-09-23 1:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-19 12:33 [PATCH -tip/master] x86: io-apic - interrupt remapping fix Cyrill Gorcunov
2008-09-22 9:04 ` Ingo Molnar
2008-09-22 10:01 ` Yinghai Lu
2008-09-22 10:05 ` Ingo Molnar
2008-09-22 10:37 ` Cyrill Gorcunov
2008-09-23 1:19 ` Suresh Siddha [this message]
2008-09-23 0:57 ` Suresh Siddha
2008-09-23 1:16 ` Suresh Siddha
2008-09-23 4:56 ` Cyrill Gorcunov
2008-09-23 18:34 ` Suresh Siddha
2008-09-23 18:42 ` Cyrill Gorcunov
2008-09-23 19:00 ` Cyrill Gorcunov
2008-09-23 19:17 ` Suresh Siddha
2008-09-27 16:54 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080923011908.GC25045@linux-os.sc.intel.com \
--to=suresh.b.siddha@intel.com \
--cc=gorcunov@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=macro@linux-mips.org \
--cc=mingo@elte.hu \
--cc=yhlu.kernel@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox