From: Peter Zijlstra Date: Tue, 5 May 2009 15:50:25 +0000 (+0200) Subject: perf_counter: fix the output lock X-Git-Tag: v2.6.31-rc1~383^2~298 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22c1558e51c210787c6cf75d8905246fc91ec030;p=pandora-kernel.git perf_counter: fix the output lock Use -1 instead of 0 as unlocked, since 0 is a valid cpu number. ( This is not an issue right now but will be once we allow multiple counters to output to the same mmap area. ) [ Impact: prepare code for multi-counter profile output ] Signed-off-by: Peter Zijlstra Cc: Paul Mackerras Cc: Corey Ashford LKML-Reference: <20090505155437.232686598@chello.nl> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed