summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/time.c
diff options
context:
space:
mode:
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>2017-12-20 04:55:46 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2018-01-19 12:36:59 +0100
commite0b5687bed13ddbf99985d77910b9adfd429bf12 (patch)
treec30d77598d3542c4f916f5223d35e5552d272b6b /arch/powerpc/kernel/time.c
parentpowerpc/64: Move set_soft_enabled() and rename (diff)
downloadlinux-e0b5687bed13ddbf99985d77910b9adfd429bf12.tar.xz
linux-e0b5687bed13ddbf99985d77910b9adfd429bf12.zip
powerpc/64: Implement and use soft_enabled_return API
Add a new wrapper function, soft_enabled_return(), added to return paca->soft_enabled value. Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/time.c')
-rw-r--r--arch/powerpc/kernel/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c
index 320b8459c74e..daa6e9e35ab9 100644
--- a/arch/powerpc/kernel/time.c
+++ b/arch/powerpc/kernel/time.c
@@ -244,7 +244,7 @@ static u64 scan_dispatch_log(u64 stop_tb)
void accumulate_stolen_time(void)
{
u64 sst, ust;
- u8 save_soft_enabled = local_paca->soft_enabled;
+ unsigned long save_soft_enabled = soft_enabled_return();
struct cpu_accounting_data *acct = &local_paca->accounting;
/* We are called early in the exception entry, before