profiling: fix broken profiling regression
commitacd895795d35d7c6405f20301a846d16998795ec
authorHugh Dickins <hugh@veritas.com>
Mon, 9 Feb 2009 19:20:50 +0000 (9 19:20 +0000)
committerIngo Molnar <mingo@elte.hu>
Mon, 9 Feb 2009 23:50:37 +0000 (10 00:50 +0100)
treee1f704ec416e5ef735cadcf40392a2398c319e3f
parent4c098bcd55fad34dcf224bf8343db6a9ac58fc68
profiling: fix broken profiling regression

Impact: fix broken /proc/profile on UP machines

Commit c309b917cab55799ea489d7b5f1b77025d9f8462 "cpumask: convert
kernel/profile.c" broke profiling.  prof_cpu_mask was previously
initialized to CPU_MASK_ALL, but left uninitialized in that commit.
We need to copy cpu_possible_mask (cpu_online_mask is not enough).

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/profile.c