[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.2.00.1003201043530.18017@i5.linux-foundation.org>
Date: Sat, 20 Mar 2010 10:47:47 -0700 (PDT)
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Peter Zijlstra <peterz@...radead.org>
cc: "Rafael J. Wysocki" <rjw@...k.pl>,
pm list <linux-pm@...ts.linux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>, Ingo Molnar <mingo@...e.hu>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [Regression, post-2.6.34-rc1][PATCH] x86 / perf: Fix suspend to
RAM on HP nx6325
On Sat, 20 Mar 2010, Peter Zijlstra wrote:
>
> cpuhw = &per_cpu(cpu_hw_events, cpu);
> + if (!cpuhw)
> + return;
How can an address-of expression be NULL?
Yes, 'per_cpu()' is magic, but it shouldn't be possible to be _that_
magic. It's rather against the whole C model.
Linus
--
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