Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1230772 > unrolled thread
| Started by | Thomas Gleixner <tglx@linutronix.de> |
|---|---|
| First post | 2015-09-22 21:00 +0200 |
| Last post | 2015-09-23 10:10 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [RFC PATCH v5 2/4] genirq: add irq_migrate_all_off_this_cpu() for cpu hotplug Thomas Gleixner <tglx@linutronix.de> - 2015-09-22 21:00 +0200
Re: [RFC PATCH v5 2/4] genirq: add irq_migrate_all_off_this_cpu() for cpu hotplug Yang Yingliang <yangyingliang@huawei.com> - 2015-09-23 06:20 +0200
Re: [RFC PATCH v5 2/4] genirq: add irq_migrate_all_off_this_cpu() for cpu hotplug Thomas Gleixner <tglx@linutronix.de> - 2015-09-23 10:10 +0200
| From | Thomas Gleixner <tglx@linutronix.de> |
|---|---|
| Date | 2015-09-22 21:00 +0200 |
| Subject | Re: [RFC PATCH v5 2/4] genirq: add irq_migrate_all_off_this_cpu() for cpu hotplug |
| Message-ID | <qbAXg-5tC-39@gated-at.bofh.it> |
On Sat, 19 Sep 2015, Yang Yingliang wrote: > Add irq_migrate_all_off_this_cpu() into kernel/irq/migration.c. This doesn't make any sense at all. You just reuse the existing file to stick your new code into it without reusing a single bit in that file. Aside of that it's unconditionally compiled, which means all existing users of CONFIG_GENERIC_PENDING_IRQ are burdened with pointless code. The right thing to do is: Add that code to a new file: kernel/irq/cpuhotplug.c and make that depend on CONFIG_GENERIC_IRQ_MIGRATION. Thanks, tglx -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Yang Yingliang <yangyingliang@huawei.com> |
|---|---|
| Date | 2015-09-23 06:20 +0200 |
| Subject | Re: [RFC PATCH v5 2/4] genirq: add irq_migrate_all_off_this_cpu() for cpu hotplug |
| Message-ID | <qbJHb-1q1-1@gated-at.bofh.it> |
| In reply to | #1230772 |
On 2015/9/23 2:54, Thomas Gleixner wrote: > On Sat, 19 Sep 2015, Yang Yingliang wrote: > >> Add irq_migrate_all_off_this_cpu() into kernel/irq/migration.c. > > This doesn't make any sense at all. > > You just reuse the existing file to stick your new code into it > without reusing a single bit in that file. Aside of that it's > unconditionally compiled, which means all existing users of > CONFIG_GENERIC_PENDING_IRQ are burdened with pointless code. > > The right thing to do is: > > Add that code to a new file: kernel/irq/cpuhotplug.c and make that > depend on CONFIG_GENERIC_IRQ_MIGRATION. How about add #ifdef CONFIG_CPU_HOTPLUG around new code in kernel/irq/migration.c ? Thanks, Yang -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Thomas Gleixner <tglx@linutronix.de> |
|---|---|
| Date | 2015-09-23 10:10 +0200 |
| Message-ID | <qbNhM-6K3-7@gated-at.bofh.it> |
| In reply to | #1231129 |
On Wed, 23 Sep 2015, Yang Yingliang wrote: > On 2015/9/23 2:54, Thomas Gleixner wrote: > > On Sat, 19 Sep 2015, Yang Yingliang wrote: > > > > > Add irq_migrate_all_off_this_cpu() into kernel/irq/migration.c. > > > > This doesn't make any sense at all. > > > > You just reuse the existing file to stick your new code into it > > without reusing a single bit in that file. Aside of that it's > > unconditionally compiled, which means all existing users of > > CONFIG_GENERIC_PENDING_IRQ are burdened with pointless code. > > > > The right thing to do is: > > > > Add that code to a new file: kernel/irq/cpuhotplug.c and make that > > depend on CONFIG_GENERIC_IRQ_MIGRATION. > > How about add #ifdef CONFIG_CPU_HOTPLUG around new code > in kernel/irq/migration.c ? What's the point? Just to have useless churn and ifdeffery in that file for nothing? Thanks, tglx -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web