summaryrefslogtreecommitdiffstats
path: root/sys/isa/syscons_isa.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/isa/syscons_isa.c')
-rw-r--r--sys/isa/syscons_isa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/isa/syscons_isa.c b/sys/isa/syscons_isa.c
index dabf55d..0a9e22e 100644
--- a/sys/isa/syscons_isa.c
+++ b/sys/isa/syscons_isa.c
@@ -93,6 +93,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;
@@ -107,17 +108,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);
}
OpenPOWER on IntegriCloud