1 // SPDX-License-Identifier: BSD-3-Clause
2 //
3 // Copyright(c) 2019 Intel Corporation. All rights reserved.
4 //
5 // Author: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
6 
7 /* Generic scheduler */
8 #include <sof/schedule/schedule.h>
9 #include <sof/schedule/edf_schedule.h>
10 #include <sof/schedule/ll_schedule.h>
11 #include <sof/lib/alloc.h>
12 #include <sof/lib/cpu.h>
13 #include <ipc/topology.h>
14 
15 static struct schedulers *_schedulers[CONFIG_CORE_COUNT];
16 
17 /**
18  * Retrieves registered schedulers.
19  * @return List of registered schedulers.
20  */
arch_schedulers_get(void)21 struct schedulers **arch_schedulers_get(void)
22 {
23 	return _schedulers + cpu_get_id();
24 }
25