[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 1/9] xen/sched: move schedulers and cpupool coding to dedicated directory



On 18.12.19 09:58, Dario Faggioli wrote:
On Wed, 2019-12-18 at 08:48 +0100, Juergen Gross wrote:
Move sched*c and cpupool.c to a new directory common/sched.

Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
---
  MAINTAINERS                                        |  8 +--
  xen/common/Kconfig                                 | 66 +-----------
----------
  xen/common/Makefile                                |  8 +--
  xen/common/sched/Kconfig                           | 65
+++++++++++++++++++++
  xen/common/sched/Makefile                          |  7 +++
  .../{compat/schedule.c => sched/compat_schedule.c} |  2 +-
  xen/common/{ => sched}/cpupool.c                   |  0
  xen/common/{ => sched}/sched_arinc653.c            |  0
  xen/common/{ => sched}/sched_credit.c              |  0
  xen/common/{ => sched}/sched_credit2.c             |  0
  xen/common/{ => sched}/sched_null.c                |  0
  xen/common/{ => sched}/sched_rt.c                  |  0
  xen/common/{ => sched}/schedule.c                  |  2 +-
  13 files changed, 80 insertions(+), 78 deletions(-)
  create mode 100644 xen/common/sched/Kconfig
  create mode 100644 xen/common/sched/Makefile
  rename xen/common/{compat/schedule.c => sched/compat_schedule.c}
(97%)
  rename xen/common/{ => sched}/cpupool.c (100%)
  rename xen/common/{ => sched}/sched_arinc653.c (100%)
  rename xen/common/{ => sched}/sched_credit.c (100%)
  rename xen/common/{ => sched}/sched_credit2.c (100%)
  rename xen/common/{ => sched}/sched_null.c (100%)
  rename xen/common/{ => sched}/sched_rt.c (100%)
  rename xen/common/{ => sched}/schedule.c (99%)

Matter of taste, I guess, but what about not repeating 'sched', i.e.:

xen/common/sched_credit.c  --> xen/common/sched/credit.c
xen/common/sched_credit2.c --> xen/common/sched/credit2.c
xen/common/sched_null.c    --> xen/common/sched/null.c
...

schedule.c can be called something like 'core.c', or 'common.c' or just
'sched.c' (the repetition being, in this case, intentional)

Sure, I'll go with core.c


Juergen


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.