From: LEROY Christophe Date: Mon, 20 Apr 2015 05:54:42 +0000 (+0200) Subject: powerpc/8xx: dont save CR in SCRATCH registers X-Git-Tag: omap-for-v4.2/fixes-rc1^2~139^2^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2eb2fd95001e93c611034f494c7254350ff94d2a;p=pandora-kernel.git powerpc/8xx: dont save CR in SCRATCH registers CR only needs to be preserved when checking if we are handling a kernel address. So we can preserve CR in a register: - In ITLBMiss, check is done only when CONFIG_MODULES is defined. Otherwise we don't need to do anything at all with CR. - We use r10, then we reload SRR0/MD_EPN into r10 when CR is restored Signed-off-by: Christophe Leroy Signed-off-by: Scott Wood --- Reading git-diff-tree failed