]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Cleanup handling of the DSCR bit in the FSCR register
authorMichael Neuling <mikey@neuling.org>
Mon, 26 Aug 2013 03:55:57 +0000 (13:55 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 27 Aug 2013 05:05:22 +0000 (15:05 +1000)
commit7435b8aac89f17d55cb6076c21aca3851482c049
tree5e747e76bff1b853ec1a97dbb2fdb37f89d76460
parent7fb5286c81b75a39eae22f9d094ed51add19466a
powerpc: Cleanup handling of the DSCR bit in the FSCR register

As suggested by paulus we can simplify the Data Stream Control Register
(DSCR) Facility Status and Control Register (FSCR) handling.

Firstly, we simplify the asm by using a rldimi.

Secondly, we now use the FSCR only to control the DSCR facility, rather
than both the FSCR and HFSCR.  Users will see no functional change from
this but will get a minor speedup as they will trap into the kernel only
once (rather than twice) when they first touch the DSCR.  Also, this
changes removes a bunch of ugly FTR_SECTION code.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/entry_64.S
arch/powerpc/kernel/traps.c