commit | 86b818687d4894063ecd1190e54717a0cce8c009 | [log] [tgz] |
---|---|---|
author | David S. Miller <davem@davemloft.net> | Tue Jan 31 18:34:51 2006 -0800 |
committer | David S. Miller <davem@sunset.davemloft.net> | Mon Mar 20 01:11:29 2006 -0800 |
tree | d2951295358502c88f7fe0c02517d729cff4eb9a | |
parent | 9954863975910a1b9372b7d5006a6cba43bdd288 [diff] |
[SPARC64]: Fix race in LOAD_PER_CPU_BASE() Since we use %g5 itself as a temporary, it can get clobbered if we take an interrupt mid-stream and thus cause end up with the final %g5 value too early as a result of rtrap processing. Set %g5 at the very end, atomically, to avoid this problem. Signed-off-by: David S. Miller <davem@davemloft.net>