From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Gleixner Subject: Re: [patch 20/47] x86: Remove useless reinitialization of irq descriptors Date: Sun, 3 Oct 2010 20:26:25 +0200 (CEST) Message-ID: References: <20100930221351.682772535@linutronix.de> <20100930221740.449419120@linutronix.de> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: Received: from www.tglx.de ([62.245.132.106]:32925 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751789Ab0JCS1B (ORCPT ); Sun, 3 Oct 2010 14:27:01 -0400 In-Reply-To: Sender: linux-arch-owner@vger.kernel.org List-ID: To: "Eric W. Biederman" Cc: LKML , linux-arch@vger.kernel.org, Linus Torvalds , Andrew Morton , x86@kernel.org, Peter Zijlstra , Benjamin Herrenschmidt , Paul Mundt , Russell King , David Woodhouse , Jesse Barnes , Yinghai Lu , Grant Likely On Sun, 3 Oct 2010, Eric W. Biederman wrote: > Thomas Gleixner writes: > > > The descriptors are already initialized in exaclty this way. > > They aren't only status is initialized exactly that way. Err. SPARSE_IRQ=n: struct irq_desc irq_desc[NR_IRQS] __cacheline_aligned_in_smp = { [0 ... NR_IRQS-1] = { .status = IRQ_DISABLED, .chip = &no_irq_chip, .handle_irq = handle_bad_irq, .depth = 1, .lock = __RAW_SPIN_LOCK_UNLOCKED(irq_desc->lock), } }; So action == NULL and depth == 1 SPARSE_IRQ=y: allocates with kzalloc which makes action == NULL and depth is set in the init function to 1. That's true for mainline and after the rework as well. Thanks, tglx