/* SPDX-License-Identifier: GPL-2.0 */ /* * include/linux/cpu.h - generic cpu definition * * This is mainly for topological representation. We define the * basic 'struct cpu' here, which can be embedded in per-arch * definitions of processors. * * Basic handling of the devices is done in drivers/base/cpu.c * * CPUs are exported via sysfs in the devices/system/cpu * directory.
*/ #ifndef _LINUX_CPU_H_ #define _LINUX_CPU_H_
struct cpu { int node_id; /* The node which contains the CPU */ int hotpluggable; /* creates sysfs control file if hotpluggable */ struct device dev;
};
/* * These states are not related to the core CPU hotplug mechanism. They are * used by various (sub)architectures to track internal state
*/ #define CPU_ONLINE 0x0002 /* CPU is up */ #define CPU_UP_PREPARE 0x0003 /* CPU coming up */ #define CPU_DEAD 0x0007 /* CPU dead */ #define CPU_DEAD_FROZEN 0x0008 /* CPU timed out on unplug */ #define CPU_POST_DEAD 0x0009 /* CPU successfully unplugged */ #define CPU_BROKEN 0x000B /* CPU did not die properly */
#ifdef CONFIG_SMP externbool cpuhp_tasks_frozen; int add_cpu(unsignedint cpu); int cpu_device_up(struct device *dev); void notify_cpu_starting(unsignedint cpu); externvoid cpu_maps_update_begin(void); externvoid cpu_maps_update_done(void); int bringup_hibernate_cpu(unsignedint sleep_cpu); void bringup_nonboot_cpus(unsignedint max_cpus); int arch_cpu_rescan_dead_smt_siblings(void);
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.11Bemerkung:
(vorverarbeitet am 2026-06-08)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.