1KGDB_ROUNDUP_CPUS(9) KGDB Internals KGDB_ROUNDUP_CPUS(9)
2
3
4
6 kgdb_roundup_cpus - Get other CPUs into a holding pattern
7
9 void kgdb_roundup_cpus(unsigned long flags);
10
12 flags
13 Current IRQ state
14
16 On SMP systems, we need to get the attention of the other CPUs and get
17 them be in a known state. This should do what is needed to get the
18 other CPUs to call kgdb_wait. Note that on some arches, the NMI
19 approach is not used for rounding up all the CPUs. For example, in case
20 of MIPS, smp_call_function is used to roundup CPUs. In this case, we
21 have to make sure that interrupts are enabled before calling
22 smp_call_function. The argument to this function is the flags that will
23 be used when restoring the interrupts. There is local_irq_save call
24 before kgdb_roundup_cpus.
25
26 On non-SMP systems, this is not called.
27
29 Jason Wessel <jason.wessel@windriver.com>
30 Author.
31
32 Tom Rini <trini@kernel.crashing.org>
33 Author.
34
35 Amit S. Kale <amitkale@linsyssoft.com>
36 Author.
37
39Kernel Hackers Manual 2.6. June 2019 KGDB_ROUNDUP_CPUS(9)