From 766aa4708bdbd831864c0e7a0c39c4780f469e46 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 25 Nov 2018 01:59:10 +0000 Subject: [PATCH] zxdiv: halt on idle --- Kernel/platform-zxdiv/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Kernel/platform-zxdiv/main.c b/Kernel/platform-zxdiv/main.c index f2e374f0..85e6711f 100644 --- a/Kernel/platform-zxdiv/main.c +++ b/Kernel/platform-zxdiv/main.c @@ -12,9 +12,9 @@ uint16_t swap_dev = 0xFFFF; void platform_idle(void) { /* We don't want an idle poll and IRQ driven tty poll at the same moment */ - irqflags_t irq = di(); - tty_pollirq(); - irqrestore(irq); + __asm + halt + __endasm; } void platform_interrupt(void) -- 2.34.1