xen/sched: move schedulers and cpupool coding to dedicated directory

Move sched*c and cpupool.c to a new directory common/sched.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Dario Faggioli <dfaggioli@suse.com>
This commit is contained in:
Juergen Gross authored and Andrew Cooper committed 2020-01-22 17:37:11 +00:00
1 parent a4d457fd59
commit 6cb4b01c03
13 files changed
+80 -78

No files matched your search

+4 -4
View File
@@ -174,7 +174,7 @@ M: Josh Whitehead <josh.whitehead@dornerworks.com>
M: Stewart Hildebrand <stewart.hildebrand@dornerworks.com>
S: Supported
L: xen-devel@dornerworks.com
F: xen/common/sched_arinc653.c
F: xen/common/sched/arinc653.c
F: tools/libxc/xc_arinc653.c
ARM (W/ VIRTUALISATION EXTENSIONS) ARCHITECTURE
@@ -218,7 +218,7 @@ CPU POOLS
M: Juergen Gross <jgross@suse.com>
M: Dario Faggioli <dfaggioli@suse.com>
S: Supported
F: xen/common/cpupool.c
F: xen/common/sched/cpupool.c
DEVICE TREE
M: Stefano Stabellini <sstabellini@kernel.org>
@@ -384,13 +384,13 @@ RTDS SCHEDULER
M: Dario Faggioli <dfaggioli@suse.com>
M: Meng Xu <mengxu@cis.upenn.edu>
S: Supported
F: xen/common/sched_rt.c
F: xen/common/sched/rt.c
SCHEDULING
M: George Dunlap <george.dunlap@eu.citrix.com>
M: Dario Faggioli <dfaggioli@suse.com>
S: Supported
F: xen/common/sched*
F: xen/common/sched/
SEABIOS UPSTREAM
M: Wei Liu <wl@xen.org>
+1 -65
View File
@@ -275,71 +275,7 @@ config ARGO
If unsure, say N.
menu "Schedulers"
visible if EXPERT = "y"
config SCHED_CREDIT
bool "Credit scheduler support"
default y
---help---
The traditional credit scheduler is a general purpose scheduler.
config SCHED_CREDIT2
bool "Credit2 scheduler support"
default y
---help---
The credit2 scheduler is a general purpose scheduler that is
optimized for lower latency and higher VM density.
config SCHED_RTDS
bool "RTDS scheduler support (EXPERIMENTAL)"
default y
---help---
The RTDS scheduler is a soft and firm real-time scheduler for
multicore, targeted for embedded, automotive, graphics and gaming
in the cloud, and general low-latency workloads.
config SCHED_ARINC653
bool "ARINC653 scheduler support (EXPERIMENTAL)"
default DEBUG
---help---
The ARINC653 scheduler is a hard real-time scheduler for single
cores, targeted for avionics, drones, and medical devices.
config SCHED_NULL
bool "Null scheduler support (EXPERIMENTAL)"
default y
---help---
The null scheduler is a static, zero overhead scheduler,
for when there always are less vCPUs than pCPUs, typically
in embedded or HPC scenarios.
choice
prompt "Default Scheduler?"
default SCHED_CREDIT2_DEFAULT
config SCHED_CREDIT_DEFAULT
bool "Credit Scheduler" if SCHED_CREDIT
config SCHED_CREDIT2_DEFAULT
bool "Credit2 Scheduler" if SCHED_CREDIT2
config SCHED_RTDS_DEFAULT
bool "RT Scheduler" if SCHED_RTDS
config SCHED_ARINC653_DEFAULT
bool "ARINC653 Scheduler" if SCHED_ARINC653
config SCHED_NULL_DEFAULT
bool "Null Scheduler" if SCHED_NULL
endchoice
config SCHED_DEFAULT
string
default "credit" if SCHED_CREDIT_DEFAULT
default "credit2" if SCHED_CREDIT2_DEFAULT
default "rtds" if SCHED_RTDS_DEFAULT
default "arinc653" if SCHED_ARINC653_DEFAULT
default "null" if SCHED_NULL_DEFAULT
default "credit2"
endmenu
source "common/sched/Kconfig"
config CRYPTO
bool
+1 -7
View File
@@ -3,7 +3,6 @@ obj-y += bitmap.o
obj-y += bsearch.o
obj-$(CONFIG_CORE_PARKING) += core_parking.o
obj-y += cpu.o
obj-y += cpupool.o
obj-$(CONFIG_DEBUG_TRACE) += debugtrace.o
obj-$(CONFIG_HAS_DEVICE_TREE) += device_tree.o
obj-y += domctl.o
@@ -38,12 +37,6 @@ obj-y += radix-tree.o
obj-y += rbtree.o
obj-y += rcupdate.o
obj-y += rwlock.o
obj-$(CONFIG_SCHED_ARINC653) += sched_arinc653.o
obj-$(CONFIG_SCHED_CREDIT) += sched_credit.o
obj-$(CONFIG_SCHED_CREDIT2) += sched_credit2.o
obj-$(CONFIG_SCHED_RTDS) += sched_rt.o
obj-$(CONFIG_SCHED_NULL) += sched_null.o
obj-y += schedule.o
obj-y += shutdown.o
obj-y += softirq.o
obj-y += sort.o
@@ -74,6 +67,7 @@ obj-$(CONFIG_COMPAT) += $(addprefix compat/,domain.o kernel.o memory.o multicall
extra-y := symbols-dummy.o
subdir-$(CONFIG_COVERAGE) += coverage
subdir-y += sched
subdir-$(CONFIG_UBSAN) += ubsan
subdir-$(CONFIG_NEEDS_LIBELF) += libelf
+65
View File
@@ -0,0 +1,65 @@
menu "Schedulers"
visible if EXPERT = "y"
config SCHED_CREDIT
bool "Credit scheduler support"
default y
---help---
The traditional credit scheduler is a general purpose scheduler.
config SCHED_CREDIT2
bool "Credit2 scheduler support"
default y
---help---
The credit2 scheduler is a general purpose scheduler that is
optimized for lower latency and higher VM density.
config SCHED_RTDS
bool "RTDS scheduler support (EXPERIMENTAL)"
default y
---help---
The RTDS scheduler is a soft and firm real-time scheduler for
multicore, targeted for embedded, automotive, graphics and gaming
in the cloud, and general low-latency workloads.
config SCHED_ARINC653
bool "ARINC653 scheduler support (EXPERIMENTAL)"
default DEBUG
---help---
The ARINC653 scheduler is a hard real-time scheduler for single
cores, targeted for avionics, drones, and medical devices.
config SCHED_NULL
bool "Null scheduler support (EXPERIMENTAL)"
default y
---help---
The null scheduler is a static, zero overhead scheduler,
for when there always are less vCPUs than pCPUs, typically
in embedded or HPC scenarios.
choice
prompt "Default Scheduler?"
default SCHED_CREDIT2_DEFAULT
config SCHED_CREDIT_DEFAULT
bool "Credit Scheduler" if SCHED_CREDIT
config SCHED_CREDIT2_DEFAULT
bool "Credit2 Scheduler" if SCHED_CREDIT2
config SCHED_RTDS_DEFAULT
bool "RT Scheduler" if SCHED_RTDS
config SCHED_ARINC653_DEFAULT
bool "ARINC653 Scheduler" if SCHED_ARINC653
config SCHED_NULL_DEFAULT
bool "Null Scheduler" if SCHED_NULL
endchoice
config SCHED_DEFAULT
string
default "credit" if SCHED_CREDIT_DEFAULT
default "credit2" if SCHED_CREDIT2_DEFAULT
default "rtds" if SCHED_RTDS_DEFAULT
default "arinc653" if SCHED_ARINC653_DEFAULT
default "null" if SCHED_NULL_DEFAULT
default "credit2"
endmenu
+7
View File
@@ -0,0 +1,7 @@
obj-y += cpupool.o
obj-$(CONFIG_SCHED_ARINC653) += arinc653.o
obj-$(CONFIG_SCHED_CREDIT) += credit.o
obj-$(CONFIG_SCHED_CREDIT2) += credit2.o
obj-$(CONFIG_SCHED_RTDS) += rt.o
obj-$(CONFIG_SCHED_NULL) += null.o
obj-y += core.o
File renamed without changes.
@@ -37,7 +37,7 @@ static int compat_poll(struct compat_sched_poll *compat)
#define do_poll compat_poll
#define sched_poll compat_sched_poll
#include "../schedule.c"
#include "core.c"
int compat_set_timer_op(u32 lo, s32 hi)
{
@@ -3128,7 +3128,7 @@ void __init sched_setup_dom0_vcpus(struct domain *d)
#endif
#ifdef CONFIG_COMPAT
#include "compat/schedule.c"
#include "compat.c"
#endif
#endif /* !COMPAT */
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.