summaryrefslogtreecommitdiff
path: root/arch/powerpc/lib/interrupts.c
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2017-07-13 16:09:52 +0300
committerTom Rini <trini@konsulko.com>2017-07-23 05:22:49 +0300
commitf1cd73674ff19e62c69c942f23abb061c0a26072 (patch)
tree81123a9dc778db85f233dc23c69993eaffac9cde /arch/powerpc/lib/interrupts.c
parentf0eda3cb89813c49d90fec7ee5fa69d3fe3d6daa (diff)
downloadu-boot-f1cd73674ff19e62c69c942f23abb061c0a26072.tar.xz
powerpc: move set_msr() and get_msr() into .h
set_msr() and get_msr() are defined and used twice. This patch moves them into ppc.h Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Diffstat (limited to 'arch/powerpc/lib/interrupts.c')
-rw-r--r--arch/powerpc/lib/interrupts.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/powerpc/lib/interrupts.c b/arch/powerpc/lib/interrupts.c
index 50313573fb..ccba829710 100644
--- a/arch/powerpc/lib/interrupts.c
+++ b/arch/powerpc/lib/interrupts.c
@@ -33,20 +33,6 @@ extern void timer_interrupt_cpu (struct pt_regs *);
static unsigned decrementer_count; /* count value for 1e6/HZ microseconds */
-static __inline__ unsigned long get_msr (void)
-{
- unsigned long msr;
-
- asm volatile ("mfmsr %0":"=r" (msr):);
-
- return msr;
-}
-
-static __inline__ void set_msr (unsigned long msr)
-{
- asm volatile ("mtmsr %0"::"r" (msr));
-}
-
static __inline__ unsigned long get_dec (void)
{
unsigned long val;