From: Jayachandran C Date: Mon, 10 Jun 2013 06:30:02 +0000 (+0000) Subject: MIPS: Netlogic: Fix nlm_read_c2_status() definition X-Git-Tag: v3.11-rc1~14^2~67 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c146cd46fccfaa5525152f086da2752fe0ed4dd;p=pandora-kernel.git MIPS: Netlogic: Fix nlm_read_c2_status() definition The sel argument os nlm_read_c2_status() was not used and the macro returned the sel 0 in all cases. Fix this by defining two macros: nlm_read_c2_status0() and nlm_read_c2_status1() to return the two status registers. Add functions to write to the status registers as well. Signed-off-by: Jayachandran C Cc: linux-mips@linux-mips.org Cc: ddaney.cavm@gmail.com Patchwork: https://patchwork.linux-mips.org/patch/5414/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed