diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2018-05-01 00:55:52 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-07-24 22:09:58 +1000 |
commit | cca3d5290ede73b01144aa522910c88b1e02fcef (patch) | |
tree | bdbcae32eff8a3acb0a91ef047174d7f775ea073 /drivers/tty/hvc | |
parent | 17cc1dd4924391b54fb179d0868b89dc96f2ee80 (diff) | |
download | linux-stable-cca3d5290ede73b01144aa522910c88b1e02fcef.tar.gz linux-stable-cca3d5290ede73b01144aa522910c88b1e02fcef.tar.bz2 linux-stable-cca3d5290ede73b01144aa522910c88b1e02fcef.zip |
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>
Diffstat (limited to 'drivers/tty/hvc')
-rw-r--r-- | drivers/tty/hvc/hvc_opal.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/tty/hvc/hvc_opal.c b/drivers/tty/hvc/hvc_opal.c index 810fd42904c3..f631f8bee308 100644 --- a/drivers/tty/hvc/hvc_opal.c +++ b/drivers/tty/hvc/hvc_opal.c @@ -313,14 +313,8 @@ static int udbg_opal_getc(void) int ch; for (;;) { ch = udbg_opal_getc_poll(); - if (ch == -1) { - /* This shouldn't be needed...but... */ - volatile unsigned long delay; - for (delay=0; delay < 2000000; delay++) - ; - } else { + if (ch != -1) return ch; - } } } |