Skip to contentSkip to conversation

xen/sched: fix stale file path comments in common/sched directory

PATCH Superseded Furkan Caliskan 5 participants 8 messages May 25 – May 28

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/sched: fix stale file path comments in common/sched directory

Commit 6cb4b01c03 ("xen/sched: move schedulers and cpupool coding to dedicated directory") moved the scheduler files from xen/common/ to xen/common/sched and renamed some of them, but did not update the in-file path comments at the top of each file.

Update the comments to reflect the current file locations.

---
 xen/common/sched/arinc653.c     | 2 +-
 xen/common/sched/boot-cpupool.c | 2 +-
 xen/common/sched/compat.c       | 2 +-
 xen/common/sched/core.c         | 2 +-
 xen/common/sched/cpupool.c      | 2 +-
 xen/common/sched/credit.c       | 2 +-
 xen/common/sched/credit2.c      | 2 +-
 xen/common/sched/null.c         | 2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)
xen/common/sched/arinc653.c +1 -1
index d8a5380557..f509915e9b 100644
@@ -1,5 +1,5 @@
 /******************************************************************************
- * sched_arinc653.c
+ * common/sched/arinc653.c
  *
  * An ARINC653-compatible scheduling algorithm for use in Xen.
  *
xen/common/sched/boot-cpupool.c +1 -1
index 03be73efdd..38beec8ec7 100644
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
 /*
- * xen/common/boot_cpupools.c
+ * common/sched/boot-cpupool.c
  *
  * Code to create cpupools at boot time.
  *
xen/common/sched/compat.c +1 -1
index a02204ec9a..1bbbd8f717 100644
@@ -1,5 +1,5 @@
 /****************************************************************************
- * schedule.c
+ * common/sched/compat.c
  *
  */
 
xen/common/sched/core.c +1 -1
index a57d5dd929..e4577d41f7 100644
@@ -4,7 +4,7 @@
  * (C) 2004      - Mark Williamson - Intel Research Cambridge
  ****************************************************************************
  *
- *        File: common/schedule.c
+ *        File: common/sched/core.c
  *      Author: Rolf Neugebauer & Keir Fraser
  *              Updated for generic API by Mark Williamson
  *
xen/common/sched/cpupool.c +1 -1
index f5459c2779..b1e0884842 100644
@@ -1,5 +1,5 @@
 /******************************************************************************
- * cpupool.c
+ * common/sched/cpupool.c
  * 
  * Generic cpupool-handling functions.
  *
xen/common/sched/credit.c +1 -1
index e9a91d11c3..9c8075338e 100644
@@ -2,7 +2,7 @@
  * (C) 2005-2006 - Emmanuel Ackaouy - XenSource Inc.
  ****************************************************************************
  *
- *        File: common/csched_credit.c
+ *        File: common/sched/credit.c
  *      Author: Emmanuel Ackaouy
  *
  * Description: Credit-based SMP CPU scheduler
xen/common/sched/credit2.c +1 -1
index 75316d42b7..04e7b9a28c 100644
@@ -3,7 +3,7 @@
  * (C) 2009 - George Dunlap - Citrix Systems R&D UK, Ltd
  ****************************************************************************
  *
- *        File: common/sched_credit2.c
+ *        File: common/sched/credit2.c
  *      Author: George Dunlap
  *
  * Description: Credit-based SMP CPU scheduler
xen/common/sched/null.c +1 -1
index c8e327e3cd..aa136fa729 100644
@@ -1,5 +1,5 @@
 /*
- * xen/common/sched_null.c
+ * common/sched/null.c
  *
  *  Copyright (c) 2017, Dario Faggioli, Citrix Ltd
  *
Signature · 1 line
2.34.1
#1 lore raw
Quoted 6 lines · Furkan Caliskan

Commit 6cb4b01c03 ("xen/sched: move schedulers and cpupool coding to dedicated directory") moved the scheduler files from xen/common/ to xen/common/sched and renamed some of them, but did not update the in-file path comments at the top of each file.

Update the comments to reflect the current file locations.

FWIW, if we have to modify those lines I would just delete them, I don't think they add anything meaningful to the file.

Thanks, Roger.

#2 lore raw
Quoted 10 lines · Roger Pau Monné
Quoted 6 lines · Furkan Caliskan

Commit 6cb4b01c03 ("xen/sched: move schedulers and cpupool coding to dedicated directory") moved the scheduler files from xen/common/ to xen/common/sched and renamed some of them, but did not update the in-file path comments at the top of each file.

Update the comments to reflect the current file locations.

FWIW, if we have to modify those lines I would just delete them, I don't think they add anything meaningful to the file.

Wanted to write the same. So yes, please drop the lines instead of modifying them.

Juergen

#3 lore raw
Quoted 9 lines · Jürgen Groß
Quoted 8 lines · Roger Pau Monné
Quoted 6 lines · Furkan Caliskan

Commit 6cb4b01c03 ("xen/sched: move schedulers and cpupool coding to dedicated directory") moved the scheduler files from xen/common/ to xen/common/sched and renamed some of them, but did not update the in-file path comments at the top of each file.

Update the comments to reflect the current file locations.

Quoted 8 lines
Quoted 2 lines

FWIW, if we have to modify those lines I would just delete them, I don't think they add anything meaningful to the file.

Wanted to write the same. So yes, please drop the lines instead of modifying them.

Juergen

Thanks for the feedback. I'll send a v2 with the lines dropped.

Furkan Caliskan

#4 lore raw

PATCH v2 1/1 xen/sched: remove stale file path comments in common/sched directory

In reply to Furkan Caliskan

Commit 6cb4b01c03 ("xen/sched: move schedulers and cpupool coding to dedicated directory") moved the scheduler files from xen/common/ to xen/common/sched and renamed some of them, but did not update the in-file path comments at the top of each file.

Remove the comments rather than updating them, as they are redundant information already conveyed by the filename itself.

---
 xen/common/sched/arinc653.c     | 1 -
 xen/common/sched/boot-cpupool.c | 2 --
 xen/common/sched/compat.c       | 4 ----
 xen/common/sched/core.c         | 1 -
 xen/common/sched/cpupool.c      | 1 -
 xen/common/sched/credit.c       | 1 -
 xen/common/sched/credit2.c      | 1 -
 xen/common/sched/null.c         | 1 -
 8 files changed, 12 deletions(-)
xen/common/sched/arinc653.c +0 -1
index d8a5380557..32c596a23c 100644
@@ -1,5 +1,4 @@
 /******************************************************************************
- * sched_arinc653.c
  *
  * An ARINC653-compatible scheduling algorithm for use in Xen.
  *
xen/common/sched/boot-cpupool.c +0 -2
index 03be73efdd..3ffe1f26bd 100644
@@ -1,7 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
 /*
- * xen/common/boot_cpupools.c
- *
  * Code to create cpupools at boot time.
  *
  * Copyright (C) 2022 Arm Ltd.
xen/common/sched/compat.c +0 -4
index a02204ec9a..5574393cb4 100644
@@ -1,7 +1,3 @@
-/****************************************************************************
- * schedule.c
- *
- */
 
 #ifndef __COMMON_SCHED_COMPAT_C__
 #define __COMMON_SCHED_COMPAT_C__
xen/common/sched/core.c +0 -1
index a57d5dd929..8e2b75bc35 100644
@@ -4,7 +4,6 @@
  * (C) 2004      - Mark Williamson - Intel Research Cambridge
  ****************************************************************************
  *
- *        File: common/schedule.c
  *      Author: Rolf Neugebauer & Keir Fraser
  *              Updated for generic API by Mark Williamson
  *
xen/common/sched/cpupool.c +0 -1
index f5459c2779..081e1053eb 100644
@@ -1,5 +1,4 @@
 /******************************************************************************
- * cpupool.c
  * 
  * Generic cpupool-handling functions.
  *
xen/common/sched/credit.c +0 -1
index e9a91d11c3..07656a57e9 100644
@@ -2,7 +2,6 @@
  * (C) 2005-2006 - Emmanuel Ackaouy - XenSource Inc.
  ****************************************************************************
  *
- *        File: common/csched_credit.c
  *      Author: Emmanuel Ackaouy
  *
  * Description: Credit-based SMP CPU scheduler
xen/common/sched/credit2.c +0 -1
index 75316d42b7..77475ee363 100644
@@ -3,7 +3,6 @@
  * (C) 2009 - George Dunlap - Citrix Systems R&D UK, Ltd
  ****************************************************************************
  *
- *        File: common/sched_credit2.c
  *      Author: George Dunlap
  *
  * Description: Credit-based SMP CPU scheduler
xen/common/sched/null.c +0 -1
index c8e327e3cd..5f15779b07 100644
@@ -1,5 +1,4 @@
 /*
- * xen/common/sched_null.c
  *
  *  Copyright (c) 2017, Dario Faggioli, Citrix Ltd
  *
Signature · 1 line
2.34.1
Reviewed-by on v2 1/1
#5 lore raw

Re: [PATCH v2] xen/sched: remove stale file path comments in common/sched directory

Quoted 11 lines · Furkan Caliskan

Commit 6cb4b01c03 ("xen/sched: move schedulers and cpupool coding to dedicated directory") moved the scheduler files from xen/common/ to xen/common/sched and renamed some of them, but did not update the in-file path comments at the top of each file.

Remove the comments rather than updating them, as they are redundant information already conveyed by the filename itself.

Juergen

#6 lore raw

Re: [PATCH v2] xen/sched: remove stale file path comments in common/sched directory

Quoted 6 lines · Jürgen Groß
Quoted 5 lines · Furkan Caliskan

Commit 6cb4b01c03 ("xen/sched: move schedulers and cpupool coding to dedicated directory") moved the scheduler files from xen/common/ to xen/common/sched and renamed some of them, but did not update the in-file path comments at the top of each file.

Quoted 8 lines
Quoted 6 lines

Remove the comments rather than updating them, as they are redundant information already conveyed by the filename itself.

For ARINC 653:

FYI, we are in the release cycle for 4.22, and I'm not sure this is justified to be included in this release. IMO it would be OK to wait for the next cycle.

#7 lore raw

Re: [PATCH v2] xen/sched: remove stale file path comments in common/sched directory

Quoted 13 lines · Stewart Hildebrand
Quoted 12 lines · Jürgen Groß
Quoted 11 lines · Furkan Caliskan

Commit 6cb4b01c03 ("xen/sched: move schedulers and cpupool coding to dedicated directory") moved the scheduler files from xen/common/ to xen/common/sched and renamed some of them, but did not update the in-file path comments at the top of each file.

Remove the comments rather than updating them, as they are redundant information already conveyed by the filename itself.

Quoted 6 lines
Quoted 1 line

For ARINC 653:

FYI, we are in the release cycle for 4.22, and I'm not sure this is justified to be included in this release. IMO it would be OK to wait for the next cycle.

Bugfixes are still being accepted, and wrong comments are a bug.  I've taken the patch.

~Andrew