From: Peter Zijlstra Date: Wed, 8 Jul 2009 08:21:41 +0000 (+0200) Subject: perf_counter: Fix up P6 PMU details X-Git-Tag: v2.6.31-rc4~3^2~12^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c74fb50867e8fb5f3be3be06716492c0f79309e;p=pandora-kernel.git perf_counter: Fix up P6 PMU details The P6 doesn't seem to support cache ref/hit/miss counts, so we extend the generic hardware event codes to have 0 and -1 mean the same thing as for the generic cache events. Furthermore, it turns out the 0 event does not count (that is, its reported that on PPro it actually does count something), therefore use a event configuration that's specified not to count to disable the counters. Signed-off-by: Peter Zijlstra LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed