git: 8d95f5005211 - main - smp: Use local copies of the setup function pointer and argument
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 06 Jun 2022 15:30:03 UTC
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=8d95f500521128c2b40270bdd703a54b56dbccf2 commit 8d95f500521128c2b40270bdd703a54b56dbccf2 Author: Yuichiro NAITO <naito.yuichiro@gmail.com> AuthorDate: 2022-06-06 15:21:33 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-06-06 15:29:51 +0000 smp: Use local copies of the setup function pointer and argument No functional change intended. PR: 264383 Reviewed by: jhb, markj MFC after: 1 week --- sys/kern/subr_smp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c index a677075937e6..d66120666f9d 100644 --- a/sys/kern/subr_smp.c +++ b/sys/kern/subr_smp.c @@ -500,8 +500,8 @@ smp_rendezvous_action(void) * function before moving on to the action function. */ if (local_setup_func != smp_no_rendezvous_barrier) { - if (smp_rv_setup_func != NULL) - smp_rv_setup_func(smp_rv_func_arg); + if (local_setup_func != NULL) + local_setup_func(local_func_arg); atomic_add_int(&smp_rv_waiters[1], 1); while (smp_rv_waiters[1] < smp_rv_ncpus) cpu_spinwait();