Messages in this thread | | | Date | Thu, 17 Nov 2011 08:06:29 -0800 | From | "H. Peter Anvin" <> | Subject | Re: [RFC PATCH 3/5] x86: add a sysctl parameter to panic on stack overflow |
| |
On 11/17/2011 08:00 AM, Konrad Rzeszutek Wilk wrote: >> >> I don't mind if I add __read_mostly here, but I think it's not >> necessary because this variable is seldom read as well. > > The definition of __read_mostly is that it moves this variable to a cold cache area. > Which is what you want. >
Not really. __read_mostly moves a variable to an area that is expected to spent most its time in the cache-shared state and rarely be invalidated. It does NOT mean that it is cold.
-hpa
-- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.
| |