aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hyperv/vmbus
diff options
context:
space:
mode:
authorWei Hu <whu@FreeBSD.org>2023-06-07 08:03:59 +0000
committerWei Hu <whu@FreeBSD.org>2023-06-07 08:24:13 +0000
commit4f8c634de09ffa2583306821e235f6f92104e729 (patch)
tree5783375aaf3674ae90b03835b773e1d0aaa350fb /sys/dev/hyperv/vmbus
parent1177a6c8dcfd6625c541d6ffc3c6915b8b6354f7 (diff)
Diffstat (limited to 'sys/dev/hyperv/vmbus')
-rw-r--r--sys/dev/hyperv/vmbus/vmbus.c28
1 files changed, 6 insertions, 22 deletions
diff --git a/sys/dev/hyperv/vmbus/vmbus.c b/sys/dev/hyperv/vmbus/vmbus.c
index ae4c466d98d9..cc37d84ff151 100644
--- a/sys/dev/hyperv/vmbus/vmbus.c
+++ b/sys/dev/hyperv/vmbus/vmbus.c
@@ -114,7 +114,7 @@ static uint32_t vmbus_get_vcpu_id_method(device_t bus,
device_t dev, int cpu);
static struct taskqueue *vmbus_get_eventtq_method(device_t, device_t,
int);
-#if defined(EARLY_AP_STARTUP) || defined(__aarch64__)
+#if defined(EARLY_AP_STARTUP)
static void vmbus_intrhook(void *);
#endif
@@ -1482,7 +1482,7 @@ vmbus_event_proc_dummy(struct vmbus_softc *sc __unused, int cpu __unused)
{
}
-#if defined(EARLY_AP_STARTUP) || defined(__aarch64__)
+#if defined(EARLY_AP_STARTUP)
static void
vmbus_intrhook(void *xsc)
@@ -1495,7 +1495,7 @@ vmbus_intrhook(void *xsc)
config_intrhook_disestablish(&sc->vmbus_intrhook);
}
-#endif /* EARLY_AP_STARTUP aarch64 */
+#endif /* EARLY_AP_STARTUP */
static int
vmbus_attach(device_t dev)
@@ -1511,22 +1511,13 @@ vmbus_attach(device_t dev)
*/
vmbus_sc->vmbus_event_proc = vmbus_event_proc_dummy;
-#if defined(EARLY_AP_STARTUP) || defined(__aarch64__)
+#if defined(EARLY_AP_STARTUP)
/*
* Defer the real attach until the pause(9) works as expected.
*/
vmbus_sc->vmbus_intrhook.ich_func = vmbus_intrhook;
vmbus_sc->vmbus_intrhook.ich_arg = vmbus_sc;
config_intrhook_establish(&vmbus_sc->vmbus_intrhook);
-#else /* !EARLY_AP_STARTUP */
- /*
- * If the system has already booted and thread
- * scheduling is possible indicated by the global
- * cold set to zero, we just call the driver
- * initialization directly.
- */
- if (!cold)
- vmbus_doattach(vmbus_sc);
#endif /* EARLY_AP_STARTUP and aarch64 */
return (0);
@@ -1572,7 +1563,7 @@ vmbus_detach(device_t dev)
return (0);
}
-#if !defined(EARLY_AP_STARTUP) && !defined(__aarch64__)
+#if !defined(EARLY_AP_STARTUP)
static void
vmbus_sysinit(void *arg __unused)
@@ -1582,14 +1573,7 @@ vmbus_sysinit(void *arg __unused)
if (vm_guest != VM_GUEST_HV || sc == NULL)
return;
- /*
- * If the system has already booted and thread
- * scheduling is possible, as indicated by the
- * global cold set to zero, we just call the driver
- * initialization directly.
- */
- if (!cold)
- vmbus_doattach(sc);
+ vmbus_doattach(sc);
}
/*
* NOTE: