diff options
author | nyan <nyan@FreeBSD.org> | 2002-10-17 12:54:51 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2002-10-17 12:54:51 +0000 |
commit | f353241d395f7724ac2fd02c3cc91d3317ed797a (patch) | |
tree | 537d18847bb978fa087753270c2b71f78934001c /sys/pc98 | |
parent | 3be4dc6165cde178eabde5e91e6fe9477538194e (diff) | |
download | FreeBSD-src-f353241d395f7724ac2fd02c3cc91d3317ed797a.zip FreeBSD-src-f353241d395f7724ac2fd02c3cc91d3317ed797a.tar.gz |
Merged from sys/isa/syscons_isa.c revision 1.19.
Diffstat (limited to 'sys/pc98')
-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); } |