cngetc: use cpu_spinwait to ease the cncheckc loop a tiny bit
Reviewed by: julian MFC after: 10 days
This commit is contained in:
parent
9d200697d7
commit
298fbd1605
@ -384,7 +384,7 @@ cngetc(void)
|
||||
if (cn_mute)
|
||||
return (-1);
|
||||
while ((c = cncheckc()) == -1)
|
||||
;
|
||||
cpu_spinwait();
|
||||
if (c == '\r')
|
||||
c = '\n'; /* console input is always ICRNL */
|
||||
return (c);
|
||||
|
Loading…
Reference in New Issue
Block a user