/Linux-v5.4/kernel/ |
D | panic.c | 126 int old_cpu, cpu; in nmi_panic() local 129 old_cpu = atomic_cmpxchg(&panic_cpu, PANIC_CPU_INVALID, cpu); in nmi_panic() 131 if (old_cpu == PANIC_CPU_INVALID) in nmi_panic() 133 else if (old_cpu != cpu) in nmi_panic() 173 int old_cpu, this_cpu; in panic() local 201 old_cpu = atomic_cmpxchg(&panic_cpu, PANIC_CPU_INVALID, this_cpu); in panic() 203 if (old_cpu != PANIC_CPU_INVALID && old_cpu != this_cpu) in panic()
|
D | kexec_core.c | 964 int old_cpu, this_cpu; in crash_kexec() local 972 old_cpu = atomic_cmpxchg(&panic_cpu, PANIC_CPU_INVALID, this_cpu); in crash_kexec() 973 if (old_cpu == PANIC_CPU_INVALID) { in crash_kexec()
|
/Linux-v5.4/arch/mips/sibyte/sb1250/ |
D | irq.c | 73 int i = 0, old_cpu, cpu, int_on; in sb1250_set_affinity() local 87 old_cpu = sb1250_irq_owner[irq]; in sb1250_set_affinity() 88 cur_ints = ____raw_readq(IOADDR(A_IMR_MAPPER(old_cpu) + in sb1250_set_affinity() 94 ____raw_writeq(cur_ints, IOADDR(A_IMR_MAPPER(old_cpu) + in sb1250_set_affinity()
|
/Linux-v5.4/arch/mips/sibyte/bcm1480/ |
D | irq.c | 81 int i = 0, old_cpu, cpu, int_on, k; in bcm1480_set_affinity() local 94 old_cpu = bcm1480_irq_owner[irq]; in bcm1480_set_affinity() 101 …cur_ints = ____raw_readq(IOADDR(A_BCM1480_IMR_MAPPER(old_cpu) + R_BCM1480_IMR_INTERRUPT_MASK_H + (… in bcm1480_set_affinity() 106 …____raw_writeq(cur_ints, IOADDR(A_BCM1480_IMR_MAPPER(old_cpu) + R_BCM1480_IMR_INTERRUPT_MASK_H + (… in bcm1480_set_affinity()
|
/Linux-v5.4/kernel/debug/kdb/ |
D | kdb_io.c | 563 int this_cpu, old_cpu; in vkdb_printf() local 576 old_cpu = cmpxchg(&kdb_printf_cpu, -1, this_cpu); in vkdb_printf() 577 if (old_cpu == -1 || old_cpu == this_cpu) in vkdb_printf() 850 smp_store_release(&kdb_printf_cpu, old_cpu); in vkdb_printf()
|
/Linux-v5.4/tools/perf/scripts/python/ |
D | sched-migration.py | 191 def migrate(self, ts_list, new, old_cpu, new_cpu): argument 192 if old_cpu == new_cpu: 194 old_rq = self.prev.rqs[old_cpu] 196 self.rqs[old_cpu] = out_rq 207 self.event_cpus.append(old_cpu)
|
/Linux-v5.4/drivers/irqchip/ |
D | irq-bcm6345-l1.c | 203 unsigned int old_cpu = cpu_for_irq(intc, d); in bcm6345_l1_set_affinity() local 219 if (old_cpu != new_cpu) { in bcm6345_l1_set_affinity() 220 enabled = intc->cpus[old_cpu]->enable_cache[word] & mask; in bcm6345_l1_set_affinity()
|
/Linux-v5.4/arch/x86/events/intel/ |
D | uncore.c | 1157 static void uncore_change_type_ctx(struct intel_uncore_type *type, int old_cpu, in uncore_change_type_ctx() argument 1164 die = topology_logical_die_id(old_cpu < 0 ? new_cpu : old_cpu); in uncore_change_type_ctx() 1170 if (old_cpu < 0) { in uncore_change_type_ctx() 1176 WARN_ON_ONCE(box->cpu != old_cpu); in uncore_change_type_ctx() 1182 perf_pmu_migrate_context(&pmu->pmu, old_cpu, new_cpu); in uncore_change_type_ctx() 1188 int old_cpu, int new_cpu) in uncore_change_context() argument 1191 uncore_change_type_ctx(*uncores, old_cpu, new_cpu); in uncore_change_context()
|
/Linux-v5.4/drivers/infiniband/hw/hfi1/ |
D | affinity.c | 795 int i, old_cpu; in hfi1_update_sdma_affinity() local 805 old_cpu = sde->cpu; in hfi1_update_sdma_affinity() 828 if (cpumask_test_cpu(old_cpu, &other_msix->mask)) in hfi1_update_sdma_affinity() 831 cpumask_clear_cpu(old_cpu, &set->mask); in hfi1_update_sdma_affinity() 832 cpumask_clear_cpu(old_cpu, &set->used); in hfi1_update_sdma_affinity()
|
/Linux-v5.4/arch/powerpc/kernel/ |
D | fadump.c | 598 int old_cpu, this_cpu; in crash_fadump() local 611 old_cpu = cmpxchg(&crashing_cpu, -1, this_cpu); in crash_fadump() 613 if (old_cpu != -1) { in crash_fadump()
|
/Linux-v5.4/arch/powerpc/perf/ |
D | imc-pmu.c | 320 static void nest_change_cpu_context(int old_cpu, int new_cpu) in nest_change_cpu_context() argument 324 if (old_cpu < 0 || new_cpu < 0) in nest_change_cpu_context() 328 perf_pmu_migrate_context(&(*pn)->pmu, old_cpu, new_cpu); in nest_change_cpu_context()
|