From: Will Deacon Date: Mon, 5 Nov 2012 12:34:47 +0000 (+0000) Subject: arm64: perf: use architected event for CPU cycle counter X-Git-Tag: v3.7-rc5~4^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f46f979fdac402c1a3decf420b82397cd93236b5;p=pandora-kernel.git arm64: perf: use architected event for CPU cycle counter We currently use a fake event encoding (0xFF) to indicate CPU cycles so that we don't waste an event counter and can target the hardware cycle counter instead. The problem with this approach is that the event space defined by the architecture permits an implementation to allocate 0xFF for some other event. This patch uses the architected cycle counter encoding (0x11) so that we avoid potentially clashing with event encodings on future CPU implementations. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- Reading git-diff-tree failed