revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-pc / kernel / schedulecpu.c
blob6ea6b48f3721f69e6d9c5c664c17ce18782f7498
1 /*
2 Copyright © 2017, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 */
8 #include <aros/kernel.h>
10 #include <kernel_base.h>
11 #include <kernel_syscall.h>
13 #include "kernel_ipi.h"
15 /*****************************************************************************
17 NAME */
18 #include <proto/kernel.h>
20 AROS_LH1(void, KrnScheduleCPU,
22 /* SYNOPSIS */
23 AROS_LHA(void *, cpu_mask, A0),
25 /* LOCATION */
26 struct KernelBase *, KernelBase, 47, Kernel)
28 /* FUNCTION
29 Run task scheduling sequence on all CPUs given in the cpu_mask
31 INPUTS
32 None
34 RESULT
35 None
37 NOTES
38 This entry point directly calls task scheduling routine
39 in supervisor mode. It neither performs any checks of caller status
40 nor obeys interrupt enable state.
42 This function is safe to call only from within user mode.
43 This function is considered internal, and not meant to be called
44 by user's software.
46 EXAMPLE
48 BUGS
50 SEE ALSO
52 INTERNALS
54 ******************************************************************************/
56 AROS_LIBFUNC_INIT
58 core_DoIPI(IPI_RESCHEDULE, cpu_mask, KernelBase);
60 AROS_LIBFUNC_EXIT