perf_counter: more barrier in blank weak function
authorYinghai Lu <yinghai@kernel.org>
Sat, 27 Dec 2008 05:05:06 +0000 (21:05 -0800)
committerIngo Molnar <mingo@elte.hu>
Sat, 27 Dec 2008 10:58:48 +0000 (11:58 +0100)
commit01ea1ccaa24dea3552e103be13b7897211607a8b
tree38c1e83ba1e144113307a6763cdccaf3d6727869
parente44aef58ecfbe061eb4c53b939bcc35fb1bee82d
perf_counter: more barrier in blank weak function

Impact: fix panic possible panic

Some versions of GCC inline the weak global function if it's empty.
Add a barrier() to work it around.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_counter.c