Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752877AbaJCOEo (ORCPT ); Fri, 3 Oct 2014 10:04:44 -0400 Received: from resqmta-po-09v.sys.comcast.net ([96.114.154.168]:54237 "EHLO resqmta-po-09v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751880AbaJCOEn (ORCPT ); Fri, 3 Oct 2014 10:04:43 -0400 Date: Fri, 3 Oct 2014 09:04:40 -0500 (CDT) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: Richard Cochran cc: Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: Why do we still have 32 bit counters? Interrupt counters overflow within 50 days In-Reply-To: <20141003121731.GB6652@localhost.localdomain> Message-ID: References: <20141003120345.GA6652@localhost.localdomain> <20141003121731.GB6652@localhost.localdomain> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Fine, but the subject line sounded different. Hmmm.... Found a bug. We need this patch on top Subject: Fix allocpercpu Must allocate unsigned long not int. Signed-off-by: Christoph Lameter Index: linux/kernel/irq/irqdesc.c =================================================================== --- linux.orig/kernel/irq/irqdesc.c +++ linux/kernel/irq/irqdesc.c @@ -140,7 +140,7 @@ static struct irq_desc *alloc_desc(int i if (!desc) return NULL; /* allocate based on nr_cpu_ids */ - desc->kstat_irqs = alloc_percpu(unsigned int); + desc->kstat_irqs = alloc_percpu(unsigned long); if (!desc->kstat_irqs) goto err_desc; -- 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/