Commit 0da6458
m68k: Avoid pointless recursion in debug console rendering
The recursive call to console_putc to effect a carriage return is
needlessly slow and complicated. Instead, just clear the column counter
directly. Setup %a0 earlier to avoid a repeated comparison.
Signed-off-by: Finn Thain <fthain@linux-m68k.org>
Tested-by: Stan Johnson <userm57@yahoo.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/a6104f41918bed4fd17f92c45df94ac7a5d30e40.1743115195.git.fthain@linux-m68k.org
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>1 parent 210a1ce commit 0da6458
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3533 | 3533 | | |
3534 | 3534 | | |
3535 | 3535 | | |
| 3536 | + | |
| 3537 | + | |
3536 | 3538 | | |
3537 | 3539 | | |
3538 | 3540 | | |
3539 | 3541 | | |
3540 | | - | |
| 3542 | + | |
3541 | 3543 | | |
3542 | | - | |
3543 | | - | |
3544 | | - | |
3545 | | - | |
| 3544 | + | |
3546 | 3545 | | |
3547 | | - | |
3548 | | - | |
3549 | 3546 | | |
3550 | 3547 | | |
3551 | 3548 | | |
| |||
0 commit comments