summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-04-23 00:26:58 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2026-04-23 00:26:58 +0300
commit38ee6e1fb6f66ca6c82ad638a3c622feeaa488f2 (patch)
treea938e6f44eca8525958d8458fac84d6abfaba62b
parent87d03777eb5dff5ea03802933e9045e64ebf004d (diff)
parent256e5254efff48d6de97e314dc17d55504c55164 (diff)
downloadlinux-38ee6e1fb6f66ca6c82ad638a3c622feeaa488f2.tar.xz
Merge tag 'kgdb-7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux
Pull kgdb update from Daniel Thompson: "Only a very small update for kgdb this cycle: a single patch from Kexin Sun that fixes some outdated comments" * tag 'kgdb-7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux: kgdb: update outdated references to kgdb_wait()
-rw-r--r--arch/x86/kernel/kgdb.c9
-rw-r--r--include/linux/kgdb.h7
-rw-r--r--kernel/debug/debug_core.c2
-rw-r--r--kernel/debug/gdbstub.c2
4 files changed, 11 insertions, 9 deletions
diff --git a/arch/x86/kernel/kgdb.c b/arch/x86/kernel/kgdb.c
index 8b1a9733d13e..96af1242454e 100644
--- a/arch/x86/kernel/kgdb.c
+++ b/arch/x86/kernel/kgdb.c
@@ -407,10 +407,11 @@ static void kgdb_disable_hw_debug(struct pt_regs *regs)
* kgdb_roundup_cpus - Get other CPUs into a holding pattern
*
* On SMP systems, we need to get the attention of the other CPUs
- * and get them be in a known state. This should do what is needed
- * to get the other CPUs to call kgdb_wait(). Note that on some arches,
- * the NMI approach is not used for rounding up all the CPUs. For example,
- * in case of MIPS, smp_call_function() is used to roundup CPUs.
+ * and get them into a known state. This should do what is needed
+ * to get the other CPUs to call kgdb_handle_exception(). Note that
+ * on some arches, the NMI approach is not used for rounding up all
+ * the CPUs. For example, in case of MIPS, smp_call_function() is
+ * used to roundup CPUs.
*
* On non-SMP systems, this is not called.
*/
diff --git a/include/linux/kgdb.h b/include/linux/kgdb.h
index 22b3f3839f30..6c46591a2eac 100644
--- a/include/linux/kgdb.h
+++ b/include/linux/kgdb.h
@@ -202,9 +202,10 @@ extern void kgdb_call_nmi_hook(void *ignored);
*
* On SMP systems, we need to get the attention of the other CPUs
* and get them into a known state. This should do what is needed
- * to get the other CPUs to call kgdb_wait(). Note that on some arches,
- * the NMI approach is not used for rounding up all the CPUs. Normally
- * those architectures can just not implement this and get the default.
+ * to get the other CPUs to call kgdb_handle_exception(). Note that
+ * on some arches, the NMI approach is not used for rounding up all
+ * the CPUs. Normally those architectures can just not implement
+ * this and get the default.
*
* On non-SMP systems, this is not called.
*/
diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c
index 0b9495187fba..b276504c1c6b 100644
--- a/kernel/debug/debug_core.c
+++ b/kernel/debug/debug_core.c
@@ -704,7 +704,7 @@ return_normal:
if (ks->send_ready)
atomic_set(ks->send_ready, 1);
- /* Signal the other CPUs to enter kgdb_wait() */
+ /* Signal the other CPUs to enter the debug trap handler */
else if ((!kgdb_single_step) && kgdb_do_roundup)
kgdb_roundup_cpus();
#endif
diff --git a/kernel/debug/gdbstub.c b/kernel/debug/gdbstub.c
index f586afd76c80..e271a436d60e 100644
--- a/kernel/debug/gdbstub.c
+++ b/kernel/debug/gdbstub.c
@@ -517,7 +517,7 @@ static void gdb_get_regs_helper(struct kgdb_state *ks)
/*
* All threads that don't have debuggerinfo should be
* in schedule() sleeping, since all other CPUs
- * are in kgdb_wait, and thus have debuggerinfo.
+ * are in kgdb_cpu_enter(), and thus have debuggerinfo.
*/
if (local_debuggerinfo) {
pt_regs_to_gdb_regs(gdb_regs, local_debuggerinfo);