Home
last modified time | relevance | path

Searched refs:old_cpu (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/kernel/
Dpanic.c193 int old_cpu, cpu; in nmi_panic() local
196 old_cpu = atomic_cmpxchg(&panic_cpu, PANIC_CPU_INVALID, cpu); in nmi_panic()
198 if (old_cpu == PANIC_CPU_INVALID) in nmi_panic()
200 else if (old_cpu != cpu) in nmi_panic()
259 int old_cpu, this_cpu; in panic() local
297 old_cpu = atomic_cmpxchg(&panic_cpu, PANIC_CPU_INVALID, this_cpu); in panic()
299 if (old_cpu != PANIC_CPU_INVALID && old_cpu != this_cpu) in panic()
Dkexec_core.c986 int old_cpu, this_cpu; in crash_kexec() local
994 old_cpu = atomic_cmpxchg(&panic_cpu, PANIC_CPU_INVALID, this_cpu); in crash_kexec()
995 if (old_cpu == PANIC_CPU_INVALID) { in crash_kexec()
/linux-6.1.9/drivers/xen/events/
Devents_internal.h19 unsigned int old_cpu);
66 unsigned int old_cpu) in xen_evtchn_port_bind_to_cpu() argument
68 evtchn_ops->bind_to_cpu(evtchn, cpu, old_cpu); in xen_evtchn_port_bind_to_cpu()
Devents_2l.c56 unsigned int old_cpu) in evtchn_2l_bind_to_cpu() argument
58 clear_bit(evtchn, BM(per_cpu(cpu_evtchn_mask, old_cpu))); in evtchn_2l_bind_to_cpu()
Devents_fifo.c189 unsigned int old_cpu) in evtchn_fifo_bind_to_cpu() argument
/linux-6.1.9/arch/mips/sibyte/sb1250/
Dirq.c73 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-6.1.9/arch/mips/sibyte/bcm1480/
Dirq.c81 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-6.1.9/kernel/debug/kdb/
Dkdb_io.c590 int this_cpu, old_cpu; in vkdb_printf() local
602 old_cpu = cmpxchg(&kdb_printf_cpu, -1, this_cpu); in vkdb_printf()
603 if (old_cpu == -1 || old_cpu == this_cpu) in vkdb_printf()
853 smp_store_release(&kdb_printf_cpu, old_cpu); in vkdb_printf()
/linux-6.1.9/tools/perf/scripts/python/
Dsched-migration.py191 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-6.1.9/drivers/irqchip/
Dirq-bcm6345-l1.c199 unsigned int old_cpu = cpu_for_irq(intc, d); in bcm6345_l1_set_affinity() local
215 if (old_cpu != new_cpu) { in bcm6345_l1_set_affinity()
216 enabled = intc->cpus[old_cpu]->enable_cache[word] & mask; in bcm6345_l1_set_affinity()
/linux-6.1.9/drivers/hv/
Dhyperv_vmbus.h449 static inline void hv_update_allocated_cpus(unsigned int old_cpu, in hv_update_allocated_cpus() argument
453 hv_clear_allocated_cpu(old_cpu); in hv_update_allocated_cpus()
/linux-6.1.9/drivers/infiniband/hw/hfi1/
Daffinity.c747 int i, old_cpu; in hfi1_update_sdma_affinity() local
757 old_cpu = sde->cpu; in hfi1_update_sdma_affinity()
780 if (cpumask_test_cpu(old_cpu, &other_msix->mask)) in hfi1_update_sdma_affinity()
783 cpumask_clear_cpu(old_cpu, &set->mask); in hfi1_update_sdma_affinity()
784 cpumask_clear_cpu(old_cpu, &set->used); in hfi1_update_sdma_affinity()
/linux-6.1.9/arch/x86/events/intel/
Duncore.c1435 static void uncore_change_type_ctx(struct intel_uncore_type *type, int old_cpu, in uncore_change_type_ctx() argument
1442 die = topology_logical_die_id(old_cpu < 0 ? new_cpu : old_cpu); in uncore_change_type_ctx()
1448 if (old_cpu < 0) { in uncore_change_type_ctx()
1454 WARN_ON_ONCE(box->cpu != old_cpu); in uncore_change_type_ctx()
1460 perf_pmu_migrate_context(&pmu->pmu, old_cpu, new_cpu); in uncore_change_type_ctx()
1466 int old_cpu, int new_cpu) in uncore_change_context() argument
1469 uncore_change_type_ctx(*uncores, old_cpu, new_cpu); in uncore_change_context()
/linux-6.1.9/arch/powerpc/kernel/
Dfadump.c696 int old_cpu, this_cpu; in crash_fadump() local
711 old_cpu = cmpxchg(&crashing_cpu, -1, this_cpu); in crash_fadump()
713 if (old_cpu != -1) { in crash_fadump()
/linux-6.1.9/arch/powerpc/perf/
Dimc-pmu.c338 static void nest_change_cpu_context(int old_cpu, int new_cpu) in nest_change_cpu_context() argument
342 if (old_cpu < 0 || new_cpu < 0) in nest_change_cpu_context()
346 perf_pmu_migrate_context(&(*pn)->pmu, old_cpu, new_cpu); in nest_change_cpu_context()