diff options
author | Sean Bruno <sbruno@FreeBSD.org> | 2017-01-16 16:58:12 +0000 |
---|---|---|
committer | Sean Bruno <sbruno@FreeBSD.org> | 2017-01-16 16:58:12 +0000 |
commit | 227743cad4bb24d407c88d6286d80e795828d829 (patch) | |
tree | 050a0eb9cb79aca1682eaf75aeaf6a3d6cb68ebf /sys/sys/gtaskqueue.h | |
parent | 3b9a898298abbf50c832a76a8485d0dcbffa6e9e (diff) | |
download | src-227743cad4bb24d407c88d6286d80e795828d829.tar.gz src-227743cad4bb24d407c88d6286d80e795828d829.zip |
Change startup order for the no EARLY_AP_STARTUP case to initialize
gtaskqueue bits at SI_SUB_INIT_IF instead of waiting until SI_SUB_SMP
which is far too late.
Add an assertion in taskqgroup_attach() to catch startup initialization
failures in the future.
Reported by: kib bde
Notes
Notes:
svn path=/head/; revision=312293
Diffstat (limited to 'sys/sys/gtaskqueue.h')
-rw-r--r-- | sys/sys/gtaskqueue.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/gtaskqueue.h b/sys/sys/gtaskqueue.h index bab8af386b47..9a00a8a34342 100644 --- a/sys/sys/gtaskqueue.h +++ b/sys/sys/gtaskqueue.h @@ -115,7 +115,7 @@ taskqgroup_adjust_##name(void *arg) \ taskqgroup_adjust(qgroup_##name, (cnt), (stride)); \ } \ \ -SYSINIT(taskqgroup_adj_##name, SI_SUB_SMP, SI_ORDER_ANY, \ +SYSINIT(taskqgroup_adj_##name, SI_SUB_INIT_IF, SI_ORDER_ANY, \ taskqgroup_adjust_##name, NULL); \ \ struct __hack |