Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tty: hvc: remove unexplained "just in case" spin delay

This delay was in the very first OPAL console commit 6.5 years ago,
and came from the vio hvc driver. The firmware console has hardened
sufficiently to remove it.

Reviewed-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Nicholas Piggin and committed by
Michael Ellerman
cca3d529 17cc1dd4

+1 -7
+1 -7
drivers/tty/hvc/hvc_opal.c
··· 313 313 int ch; 314 314 for (;;) { 315 315 ch = udbg_opal_getc_poll(); 316 - if (ch == -1) { 317 - /* This shouldn't be needed...but... */ 318 - volatile unsigned long delay; 319 - for (delay=0; delay < 2000000; delay++) 320 - ; 321 - } else { 316 + if (ch != -1) 322 317 return ch; 323 - } 324 318 } 325 319 } 326 320