powerpc: Fix oops if scan_dispatch_log is called too early

We currently enable interrupts before the dispatch log for the boot
cpu is setup. If a timer interrupt comes in early enough we oops in
scan_dispatch_log:

Unable to handle kernel paging request for data at address 0x00000010

...

.scan_dispatch_log+0xb0/0x170
.account_system_vtime+0xa0/0x220
.irq_enter+0x88/0xc0
.do_IRQ+0x48/0x230

The patch below adds a check to scan_dispatch_log to ensure the
dispatch log has been allocated.

Signed-off-by: Anton Blanchard <anton@samba.org>
Cc: <stable@kernel.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by Anton Blanchard and committed by Benjamin Herrenschmidt 84ffae55 127493d5

+3
+3
arch/powerpc/kernel/time.c
··· 229 229 u64 stolen = 0; 230 230 u64 dtb; 231 231 232 + if (!dtl) 233 + return 0; 234 + 232 235 if (i == vpa->dtl_idx) 233 236 return 0; 234 237 while (i < vpa->dtl_idx) {