aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/platform
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-10-03 20:18:52 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-10-03 20:18:52 -0400
commita8adc0f0911227996b3e79690562e6e325e4c09b (patch)
tree69a9821bb3aba0b4567d0540de794908c65edfff /arch/x86/platform
parent3ef0a61a467639cf7def299309cd9ea524c3e1c1 (diff)
parent744c193eb9a223ccb2e60500196cf590b3a6131a (diff)
Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 cleanups from Ingo Molnar: "Header file and a wrapper functions cleanup" * 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86: Migrate exception table users off module.h and onto extable.h x86: Clean up various simple wrapper functions
Diffstat (limited to 'arch/x86/platform')
-rw-r--r--arch/x86/platform/uv/bios_uv.c7
-rw-r--r--arch/x86/platform/uv/tlb_uv.c6
2 files changed, 3 insertions, 10 deletions
diff --git a/arch/x86/platform/uv/bios_uv.c b/arch/x86/platform/uv/bios_uv.c
index 23f2f3e41c7f..b4d5e95fe4df 100644
--- a/arch/x86/platform/uv/bios_uv.c
+++ b/arch/x86/platform/uv/bios_uv.c
@@ -149,11 +149,8 @@ EXPORT_SYMBOL_GPL(uv_bios_change_memprotect);
149s64 149s64
150uv_bios_reserved_page_pa(u64 buf, u64 *cookie, u64 *addr, u64 *len) 150uv_bios_reserved_page_pa(u64 buf, u64 *cookie, u64 *addr, u64 *len)
151{ 151{
152 s64 ret; 152 return uv_bios_call_irqsave(UV_BIOS_GET_PARTITION_ADDR, (u64)cookie,
153 153 (u64)addr, buf, (u64)len, 0);
154 ret = uv_bios_call_irqsave(UV_BIOS_GET_PARTITION_ADDR, (u64)cookie,
155 (u64)addr, buf, (u64)len, 0);
156 return ret;
157} 154}
158EXPORT_SYMBOL_GPL(uv_bios_reserved_page_pa); 155EXPORT_SYMBOL_GPL(uv_bios_reserved_page_pa);
159 156
diff --git a/arch/x86/platform/uv/tlb_uv.c b/arch/x86/platform/uv/tlb_uv.c
index fdb4d42b4ce5..276e1b7bba3c 100644
--- a/arch/x86/platform/uv/tlb_uv.c
+++ b/arch/x86/platform/uv/tlb_uv.c
@@ -580,11 +580,7 @@ static int uv1_wait_completion(struct bau_desc *bau_desc,
580 */ 580 */
581static unsigned long uv2_3_read_status(unsigned long offset, int rshft, int desc) 581static unsigned long uv2_3_read_status(unsigned long offset, int rshft, int desc)
582{ 582{
583 unsigned long descriptor_status; 583 return ((read_lmmr(offset) >> rshft) & UV_ACT_STATUS_MASK) << 1;
584
585 descriptor_status =
586 ((read_lmmr(offset) >> rshft) & UV_ACT_STATUS_MASK) << 1;
587 return descriptor_status;
588} 584}
589 585
590/* 586/*