[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1412553433.11091.27.camel@edumazet-glaptop2.roam.corp.google.com>
Date: Sun, 05 Oct 2014 16:57:13 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Christoph Lameter <cl@...ux.com>
Cc: Thomas Gleixner <tglx@...utronix.de>,
Richard Cochran <richardcochran@...il.com>,
linux-kernel@...r.kernel.org
Subject: Re: Why do we still have 32 bit counters? Interrupt counters
overflow within 50 days
On Sun, 2014-10-05 at 18:24 -0500, Christoph Lameter wrote:
> Subject: Increase irq counters to 64 bit V2
> -unsigned int kstat_irqs_cpu(unsigned int irq, int cpu)
> +u64 kstat_irqs_cpu(unsigned int irq, int cpu)
> {
> struct irq_desc *desc = irq_to_desc(irq);
Well, this can not safely work on 32bit hosts.
Hint : include/linux/u64_stats_sync.h
Or simply use 'unsigned long' as you did in your first patch,
really I don't feel 32bit hosts should care of this.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists