]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: domains: switch to keeping domain value in register
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 19 Aug 2015 20:23:48 +0000 (21:23 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 21 Aug 2015 12:55:49 +0000 (13:55 +0100)
commitd9a48cba337983243a0473d4c1ab0635f5c60b1f
treeb95a7132189a44d9a826e7b44fbbe5cae74d75fb
parent7080a36663ec94f7ed976e9e162c15cc4a03bc56
ARM: domains: switch to keeping domain value in register

Rather than modifying both the domain access control register and our
per-thread copy, modify only the domain access control register, and
use the per-thread copy to save and restore the register over context
switches.  We can also avoid the explicit initialisation of the
init thread_info structure.

This allows us to avoid needing to gain access to the thread information
at the uaccess control sites.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/domain.h
arch/arm/include/asm/thread_info.h
arch/arm/kernel/entry-armv.S
arch/arm/kernel/process.c