diff options
-rw-r--r-- | sys/pc98/cbus/syscons_cbus.c | 4 | ||||
-rw-r--r-- | sys/pc98/pc98/syscons_pc98.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/pc98/cbus/syscons_cbus.c b/sys/pc98/cbus/syscons_cbus.c index 10a90be..c8a4270 100644 --- a/sys/pc98/cbus/syscons_cbus.c +++ b/sys/pc98/cbus/syscons_cbus.c @@ -79,6 +79,7 @@ static int sc_cur_scr; static int scsuspend(device_t dev) { +#ifndef SC_NO_SUSPEND_VTYSWITCH int retry = 10; static int dummy; sc_softc_t *sc; @@ -93,17 +94,20 @@ scsuspend(device_t dev) tsleep(&dummy, 0, "scsuspend", 100); } while (retry--); +#endif return (0); } static int scresume(device_t dev) { +#ifndef SC_NO_SUSPEND_VTYSWITCH sc_softc_t *sc; sc = &main_softc; sc_switch_scr(sc, sc_cur_scr); +#endif return (0); } diff --git a/sys/pc98/pc98/syscons_pc98.c b/sys/pc98/pc98/syscons_pc98.c index 10a90be..c8a4270 100644 --- a/sys/pc98/pc98/syscons_pc98.c +++ b/sys/pc98/pc98/syscons_pc98.c @@ -79,6 +79,7 @@ static int sc_cur_scr; static int scsuspend(device_t dev) { +#ifndef SC_NO_SUSPEND_VTYSWITCH int retry = 10; static int dummy; sc_softc_t *sc; @@ -93,17 +94,20 @@ scsuspend(device_t dev) tsleep(&dummy, 0, "scsuspend", 100); } while (retry--); +#endif return (0); } static int scresume(device_t dev) { +#ifndef SC_NO_SUSPEND_VTYSWITCH sc_softc_t *sc; sc = &main_softc; sc_switch_scr(sc, sc_cur_scr); +#endif return (0); } |