diff options
Diffstat (limited to 'arch/powerpc/platforms/pseries/dtl.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/dtl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/pseries/dtl.c b/arch/powerpc/platforms/pseries/dtl.c index 0cc0ac07a55d..5db66f1fbc26 100644 --- a/arch/powerpc/platforms/pseries/dtl.c +++ b/arch/powerpc/platforms/pseries/dtl.c | |||
@@ -29,8 +29,7 @@ | |||
29 | #include <asm/firmware.h> | 29 | #include <asm/firmware.h> |
30 | #include <asm/lppaca.h> | 30 | #include <asm/lppaca.h> |
31 | #include <asm/debug.h> | 31 | #include <asm/debug.h> |
32 | 32 | #include <asm/plpar_wrappers.h> | |
33 | #include "plpar_wrappers.h" | ||
34 | 33 | ||
35 | struct dtl { | 34 | struct dtl { |
36 | struct dtl_entry *buf; | 35 | struct dtl_entry *buf; |
@@ -87,7 +86,7 @@ static void consume_dtle(struct dtl_entry *dtle, u64 index) | |||
87 | barrier(); | 86 | barrier(); |
88 | 87 | ||
89 | /* check for hypervisor ring buffer overflow, ignore this entry if so */ | 88 | /* check for hypervisor ring buffer overflow, ignore this entry if so */ |
90 | if (index + N_DISPATCH_LOG < vpa->dtl_idx) | 89 | if (index + N_DISPATCH_LOG < be64_to_cpu(vpa->dtl_idx)) |
91 | return; | 90 | return; |
92 | 91 | ||
93 | ++wp; | 92 | ++wp; |