From: Jayachandran C Date: Mon, 14 Jan 2013 15:11:57 +0000 (+0000) Subject: MIPS: Netlogic: Use PIC timer as a clocksource X-Git-Tag: v3.9-rc1~26^2~1^2~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e45e542cd742c1c3e30e7f252640644c66548b5;p=pandora-kernel.git MIPS: Netlogic: Use PIC timer as a clocksource The XLR/XLS/XLP PIC has a 8 countdown timers which run at the PIC frequencey. One of these can be used as a clocksource to provide timestamps that is common across cores. This can be used in place of the count/compare clocksource which is per-CPU. On XLR/XLS PIC registers are 32-bit, so we just use the lower 32-bits of the PIC counter. On XLP, the whole 64-bit can be used. Provide common macros and functions for PIC timer registers on XLR/XLS and XLP, and use them to register a PIC clocksource. Signed-off-by: Jayachandran C Patchwork: http://patchwork.linux-mips.org/patch/4786/ Signed-off-by: John Crispin --- Reading git-diff-tree failed