sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget(/translations/zh_CN/core-api/cpu_hotplugmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget(/translations/zh_TW/core-api/cpu_hotplugmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget(/translations/it_IT/core-api/cpu_hotplugmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget(/translations/ja_JP/core-api/cpu_hotplugmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget(/translations/ko_KR/core-api/cpu_hotplugmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget(/translations/sp_SP/core-api/cpu_hotplugmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(hCPU hotplug in the Kernelh]hCPU hotplug in the Kernel}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhB/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug.rsthKubh field_list)}(hhh](hfield)}(hhh](h field_name)}(hDateh]hDate}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhKubh field_body)}(hSeptember, 2021h]h paragraph)}(hhh]hSeptember, 2021}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(hAuthorh]hAuthor}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhKubh)}(hSebastian Andrzej Siewior , Rusty Russell , Srivatsa Vaddagiri , Ashok Raj , Joel Schopp , Thomas Gleixner h]h)}(hSebastian Andrzej Siewior , Rusty Russell , Srivatsa Vaddagiri , Ashok Raj , Joel Schopp , Thomas Gleixner h](hSebastian Andrzej Siewior <}(hjhhhNhNubh reference)}(hbigeasy@linutronix.deh]hbigeasy@linutronix.de}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurimailto:bigeasy@linutronix.deuh1jhjubh>, Rusty Russell <}(hjhhhNhNubj)}(hrusty@rustcorp.com.auh]hrusty@rustcorp.com.au}(hj%hhhNhNubah}(h]h ]h"]h$]h&]refurimailto:rusty@rustcorp.com.auuh1jhjubh>, Srivatsa Vaddagiri <}(hjhhhNhNubj)}(hvatsa@in.ibm.comh]hvatsa@in.ibm.com}(hj9hhhNhNubah}(h]h ]h"]h$]h&]refurimailto:vatsa@in.ibm.comuh1jhjubh>, Ashok Raj <}(hjhhhNhNubj)}(hashok.raj@intel.comh]hashok.raj@intel.com}(hjMhhhNhNubah}(h]h ]h"]h$]h&]refurimailto:ashok.raj@intel.comuh1jhjubh>, Joel Schopp <}(hjhhhNhNubj)}(hjschopp@austin.ibm.comh]hjschopp@austin.ibm.com}(hjahhhNhNubah}(h]h ]h"]h$]h&]refurimailto:jschopp@austin.ibm.comuh1jhjubh>, Thomas Gleixner <}(hjhhhNhNubj)}(htglx@linutronix.deh]htglx@linutronix.de}(hjuhhhNhNubah}(h]h ]h"]h$]h&]refurimailto:tglx@linutronix.deuh1jhjubh>}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhhubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubeh}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Introductionh]h Introduction}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hXModern advances in system architectures have introduced advanced error reporting and correction capabilities in processors. There are couple OEMS that support NUMA hardware which are hot pluggable as well, where physical node insertion and removal require support for CPU hotplug.h]hXModern advances in system architectures have introduced advanced error reporting and correction capabilities in processors. There are couple OEMS that support NUMA hardware which are hot pluggable as well, where physical node insertion and removal require support for CPU hotplug.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hSuch advances require CPUs available to a kernel to be removed either for provisioning reasons, or for RAS purposes to keep an offending CPU off system execution path. Hence the need for CPU hotplug support in the Linux kernel.h]hSuch advances require CPUs available to a kernel to be removed either for provisioning reasons, or for RAS purposes to keep an offending CPU off system execution path. Hence the need for CPU hotplug support in the Linux kernel.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hA more novel use of CPU-hotplug support is its use today in suspend resume support for SMP. Dual-core and HT support makes even a laptop run SMP kernels which didn't support these methods.h]hA more novel use of CPU-hotplug support is its use today in suspend resume support for SMP. Dual-core and HT support makes even a laptop run SMP kernels which didn’t support these methods.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h] introductionah ]h"] introductionah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hCommand Line Switchesh]hCommand Line Switches}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK ubhdefinition_list)}(hhh](hdefinition_list_item)}(h``maxcpus=n`` Restrict boot time CPUs to *n*. Say if you have four CPUs, using ``maxcpus=2`` will only boot two. You can choose to bring the other CPUs later online. h](hterm)}(h ``maxcpus=n``h]hliteral)}(hjh]h maxcpus=n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhK$hjubh definition)}(hhh]h)}(hRestrict boot time CPUs to *n*. Say if you have four CPUs, using ``maxcpus=2`` will only boot two. You can choose to bring the other CPUs later online.h](hRestrict boot time CPUs to }(hj hhhNhNubhemphasis)}(h*n*h]hn}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j(hj ubh#. Say if you have four CPUs, using }(hj hhhNhNubj)}(h ``maxcpus=2``h]h maxcpus=2}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhI will only boot two. You can choose to bring the other CPUs later online.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhK$hjubj)}(h``nr_cpus=n`` Restrict the total amount of CPUs the kernel will support. If the number supplied here is lower than the number of physically available CPUs, then those CPUs can not be brought online later. h](j)}(h ``nr_cpus=n``h]j)}(hjfh]h nr_cpus=n}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhhhK)hj`ubj)}(hhh]h)}(hRestrict the total amount of CPUs the kernel will support. If the number supplied here is lower than the number of physically available CPUs, then those CPUs can not be brought online later.h]hRestrict the total amount of CPUs the kernel will support. If the number supplied here is lower than the number of physically available CPUs, then those CPUs can not be brought online later.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hj{ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhhhK)hjhhubj)}(h``possible_cpus=n`` This option sets ``possible_cpus`` bits in ``cpu_possible_mask``. This option is limited to the X86 and S390 architecture. h](j)}(h``possible_cpus=n``h]j)}(hjh]hpossible_cpus=n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhK.hjubj)}(hhh](h)}(hAThis option sets ``possible_cpus`` bits in ``cpu_possible_mask``.h](hThis option sets }(hjhhhNhNubj)}(h``possible_cpus``h]h possible_cpus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bits in }(hjhhhNhNubj)}(h``cpu_possible_mask``h]hcpu_possible_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK,hjubh)}(h8This option is limited to the X86 and S390 architecture.h]h8This option is limited to the X86 and S390 architecture.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK.hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhK.hjhhubj)}(hZ``cpu0_hotplug`` Allow to shutdown CPU0. This option is limited to the X86 architecture. h](j)}(h``cpu0_hotplug``h]j)}(hjh]h cpu0_hotplug}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhK3hjubj)}(hhh](h)}(hAllow to shutdown CPU0.h]hAllow to shutdown CPU0.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hjubh)}(h/This option is limited to the X86 architecture.h]h/This option is limited to the X86 architecture.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhK3hjhhubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]command-line-switchesah ]h"]command line switchesah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(hCPU mapsh]hCPU maps}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhhhhhK6ubj)}(hhh](j)}(hX``cpu_possible_mask`` Bitmap of possible CPUs that can ever be available in the system. This is used to allocate some boot time memory for per_cpu variables that aren't designed to grow/shrink as CPUs are made available or removed. Once set during boot time discovery phase, the map is static, i.e no bits are added or removed anytime. Trimming it accurately for your system needs upfront can save some boot time memory. h](j)}(h``cpu_possible_mask``h]j)}(hjph]hcpu_possible_mask}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhhhK>hjjubj)}(hhh]h)}(hXBitmap of possible CPUs that can ever be available in the system. This is used to allocate some boot time memory for per_cpu variables that aren't designed to grow/shrink as CPUs are made available or removed. Once set during boot time discovery phase, the map is static, i.e no bits are added or removed anytime. Trimming it accurately for your system needs upfront can save some boot time memory.h]hXBitmap of possible CPUs that can ever be available in the system. This is used to allocate some boot time memory for per_cpu variables that aren’t designed to grow/shrink as CPUs are made available or removed. Once set during boot time discovery phase, the map is static, i.e no bits are added or removed anytime. Trimming it accurately for your system needs upfront can save some boot time memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK9hjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhhhK>hjgubj)}(hXH``cpu_online_mask`` Bitmap of all CPUs currently online. Its set in ``__cpu_up()`` after a CPU is available for kernel scheduling and ready to receive interrupts from devices. Its cleared when a CPU is brought down using ``__cpu_disable()``, before which all OS services including interrupts are migrated to another target CPU. h](j)}(h``cpu_online_mask``h]j)}(hjh]hcpu_online_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhKEhjubj)}(hhh]h)}(hX3Bitmap of all CPUs currently online. Its set in ``__cpu_up()`` after a CPU is available for kernel scheduling and ready to receive interrupts from devices. Its cleared when a CPU is brought down using ``__cpu_disable()``, before which all OS services including interrupts are migrated to another target CPU.h](h0Bitmap of all CPUs currently online. Its set in }(hjhhhNhNubj)}(h``__cpu_up()``h]h __cpu_up()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh after a CPU is available for kernel scheduling and ready to receive interrupts from devices. Its cleared when a CPU is brought down using }(hjhhhNhNubj)}(h``__cpu_disable()``h]h__cpu_disable()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhW, before which all OS services including interrupts are migrated to another target CPU.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKAhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKEhjghhubj)}(hX``cpu_present_mask`` Bitmap of CPUs currently present in the system. Not all of them may be online. When physical hotplug is processed by the relevant subsystem (e.g ACPI) can change and new bit either be added or removed from the map depending on the event is hot-add/hot-remove. There are currently no locking rules as of now. Typical usage is to init topology during boot, at which time hotplug is disabled. h](j)}(h``cpu_present_mask``h]j)}(hjh]hcpu_present_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhKMhjubj)}(hhh]h)}(hXBitmap of CPUs currently present in the system. Not all of them may be online. When physical hotplug is processed by the relevant subsystem (e.g ACPI) can change and new bit either be added or removed from the map depending on the event is hot-add/hot-remove. There are currently no locking rules as of now. Typical usage is to init topology during boot, at which time hotplug is disabled.h]hXBitmap of CPUs currently present in the system. Not all of them may be online. When physical hotplug is processed by the relevant subsystem (e.g ACPI) can change and new bit either be added or removed from the map depending on the event is hot-add/hot-remove. There are currently no locking rules as of now. Typical usage is to init topology during boot, at which time hotplug is disabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKMhjghhubeh}(h]h ]h"]h$]h&]uh1jhjVhhhhhNubh)}(hX&You really don't need to manipulate any of the system CPU maps. They should be read-only for most use. When setting up per-cpu resources almost always use ``cpu_possible_mask`` or ``for_each_possible_cpu()`` to iterate. To macro ``for_each_cpu()`` can be used to iterate over a custom CPU mask.h](hYou really don’t need to manipulate any of the system CPU maps. They should be read-only for most use. When setting up per-cpu resources almost always use }(hj<hhhNhNubj)}(h``cpu_possible_mask``h]hcpu_possible_mask}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh or }(hj<hhhNhNubj)}(h``for_each_possible_cpu()``h]hfor_each_possible_cpu()}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh to iterate. To macro }(hj<hhhNhNubj)}(h``for_each_cpu()``h]hfor_each_cpu()}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh/ can be used to iterate over a custom CPU mask.}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKOhjVhhubh)}(hHNever use anything other than ``cpumask_t`` to represent bitmap of CPUs.h](hNever use anything other than }(hjhhhNhNubj)}(h ``cpumask_t``h]h cpumask_t}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to represent bitmap of CPUs.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKThjVhhubeh}(h]cpu-mapsah ]h"]cpu mapsah$]h&]uh1hhhhhhhhK6ubh)}(hhh](h)}(hUsing CPU hotplugh]hUsing CPU hotplug}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKXubh)}(hThe kernel option *CONFIG_HOTPLUG_CPU* needs to be enabled. It is currently available on multiple architectures including ARM, MIPS, PowerPC and X86. The configuration is done via the sysfs interface::h](hThe kernel option }(hjhhhNhNubj))}(h*CONFIG_HOTPLUG_CPU*h]hCONFIG_HOTPLUG_CPU}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j(hjubh needs to be enabled. It is currently available on multiple architectures including ARM, MIPS, PowerPC and X86. The configuration is done via the sysfs interface:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKZhjhhubh literal_block)}(hX$ ls -lh /sys/devices/system/cpu total 0 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu0 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu1 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu2 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu3 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu4 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu5 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu6 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu7 drwxr-xr-x 2 root root 0 Dec 21 16:33 hotplug -r--r--r-- 1 root root 4.0K Dec 21 16:33 offline -r--r--r-- 1 root root 4.0K Dec 21 16:33 online -r--r--r-- 1 root root 4.0K Dec 21 16:33 possible -r--r--r-- 1 root root 4.0K Dec 21 16:33 presenth]hX$ ls -lh /sys/devices/system/cpu total 0 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu0 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu1 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu2 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu3 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu4 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu5 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu6 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu7 drwxr-xr-x 2 root root 0 Dec 21 16:33 hotplug -r--r--r-- 1 root root 4.0K Dec 21 16:33 offline -r--r--r-- 1 root root 4.0K Dec 21 16:33 online -r--r--r-- 1 root root 4.0K Dec 21 16:33 possible -r--r--r-- 1 root root 4.0K Dec 21 16:33 present}hjsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1jhhhK^hjhhubh)}(hThe files *offline*, *online*, *possible*, *present* represent the CPU masks. Each CPU folder contains an *online* file which controls the logical on (1) and off (0) state. To logically shutdown CPU4::h](h The files }(hjhhhNhNubj))}(h *offline*h]hoffline}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j(hjubh, }(hjhhhNhNubj))}(h*online*h]honline}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j(hjubh, }hjsbj))}(h *possible*h]hpossible}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j(hjubh, }hjsbj))}(h *present*h]hpresent}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j(hjubh6 represent the CPU masks. Each CPU folder contains an }(hjhhhNhNubj))}(h*online*h]honline}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j(hjubhV file which controls the logical on (1) and off (0) state. To logically shutdown CPU4:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKnhjhhubj)}(hM$ echo 0 > /sys/devices/system/cpu/cpu4/online smpboot: CPU 4 is now offlineh]hM$ echo 0 > /sys/devices/system/cpu/cpu4/online smpboot: CPU 4 is now offline}hjSsbah}(h]h ]h"]h$]h&]jjuh1jhhhKrhjhhubh)}(hOnce the CPU is shutdown, it will be removed from */proc/interrupts*, */proc/cpuinfo* and should also not be shown visible by the *top* command. To bring CPU4 back online::h](h2Once the CPU is shutdown, it will be removed from }(hjahhhNhNubj))}(h*/proc/interrupts*h]h/proc/interrupts}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j(hjaubh, }(hjahhhNhNubj))}(h*/proc/cpuinfo*h]h /proc/cpuinfo}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j(hjaubh- and should also not be shown visible by the }(hjahhhNhNubj))}(h*top*h]htop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j(hjaubh$ command. To bring CPU4 back online:}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKuhjhhubj)}(h[$ echo 1 > /sys/devices/system/cpu/cpu4/online smpboot: Booting Node 0 Processor 4 APIC 0x1h]h[$ echo 1 > /sys/devices/system/cpu/cpu4/online smpboot: Booting Node 0 Processor 4 APIC 0x1}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhKyhjhhubh)}(hoThe CPU is usable again. This should work on all CPUs, but CPU0 is often special and excluded from CPU hotplug.h]hoThe CPU is usable again. This should work on all CPUs, but CPU0 is often special and excluded from CPU hotplug.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK|hjhhubeh}(h]using-cpu-hotplugah ]h"]using cpu hotplugah$]h&]uh1hhhhhhhhKXubh)}(hhh](h)}(hThe CPU hotplug coordinationh]hThe CPU hotplug coordination}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hThe offline caseh]hThe offline case}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hOnce a CPU has been logically shutdown the teardown callbacks of registered hotplug states will be invoked, starting with ``CPUHP_ONLINE`` and terminating at state ``CPUHP_OFFLINE``. This includes:h](hzOnce a CPU has been logically shutdown the teardown callbacks of registered hotplug states will be invoked, starting with }(hjhhhNhNubj)}(h``CPUHP_ONLINE``h]h CPUHP_ONLINE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and terminating at state }(hjhhhNhNubj)}(h``CPUHP_OFFLINE``h]h CPUHP_OFFLINE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. This includes:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh bullet_list)}(hhh](h list_item)}(h]If tasks are frozen due to a suspend operation then *cpuhp_tasks_frozen* will be set to true.h]h)}(h]If tasks are frozen due to a suspend operation then *cpuhp_tasks_frozen* will be set to true.h](h4If tasks are frozen due to a suspend operation then }(hj(hhhNhNubj))}(h*cpuhp_tasks_frozen*h]hcpuhp_tasks_frozen}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j(hj(ubh will be set to true.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj$ubah}(h]h ]h"]h$]h&]uh1j"hjhhhhhNubj#)}(hAll processes are migrated away from this outgoing CPU to new CPUs. The new CPU is chosen from each process' current cpuset, which may be a subset of all online CPUs.h]h)}(hAll processes are migrated away from this outgoing CPU to new CPUs. The new CPU is chosen from each process' current cpuset, which may be a subset of all online CPUs.h]hAll processes are migrated away from this outgoing CPU to new CPUs. The new CPU is chosen from each process’ current cpuset, which may be a subset of all online CPUs.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjNubah}(h]h ]h"]h$]h&]uh1j"hjhhhhhNubj#)}(h=All interrupts targeted to this CPU are migrated to a new CPUh]h)}(hjhh]h=All interrupts targeted to this CPU are migrated to a new CPU}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjfubah}(h]h ]h"]h$]h&]uh1j"hjhhhhhNubj#)}(h%timers are also migrated to a new CPUh]h)}(hjh]h%timers are also migrated to a new CPU}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj}ubah}(h]h ]h"]h$]h&]uh1j"hjhhhhhNubj#)}(h}Once all services are migrated, kernel calls an arch specific routine ``__cpu_disable()`` to perform arch specific cleanup. h]h)}(h{Once all services are migrated, kernel calls an arch specific routine ``__cpu_disable()`` to perform arch specific cleanup.h](hFOnce all services are migrated, kernel calls an arch specific routine }(hjhhhNhNubj)}(h``__cpu_disable()``h]h__cpu_disable()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" to perform arch specific cleanup.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j"hjhhhhhNubeh}(h]h ]h"]h$]h&]bullet*uh1jhhhKhjhhubeh}(h]the-offline-caseah ]h"]the offline caseah$]h&]uh1hhjhhhhhKubeh}(h]the-cpu-hotplug-coordinationah ]h"]the cpu hotplug coordinationah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hThe CPU hotplug APIh]hThe CPU hotplug API}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hCPU hotplug state machineh]hCPU hotplug state machine}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hCPU hotplug uses a trivial state machine with a linear state space from CPUHP_OFFLINE to CPUHP_ONLINE. Each state has a startup and a teardown callback.h]hCPU hotplug uses a trivial state machine with a linear state space from CPUHP_OFFLINE to CPUHP_ONLINE. Each state has a startup and a teardown callback.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hWhen a CPU is onlined, the startup callbacks are invoked sequentially until the state CPUHP_ONLINE is reached. They can also be invoked when the callbacks of a state are set up or an instance is added to a multi-instance state.h]hWhen a CPU is onlined, the startup callbacks are invoked sequentially until the state CPUHP_ONLINE is reached. They can also be invoked when the callbacks of a state are set up or an instance is added to a multi-instance state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hWhen a CPU is offlined the teardown callbacks are invoked in the reverse order sequentially until the state CPUHP_OFFLINE is reached. They can also be invoked when the callbacks of a state are removed or an instance is removed from a multi-instance state.h]hWhen a CPU is offlined the teardown callbacks are invoked in the reverse order sequentially until the state CPUHP_OFFLINE is reached. They can also be invoked when the callbacks of a state are removed or an instance is removed from a multi-instance state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hIf a usage site requires only a callback in one direction of the hotplug operations (CPU online or CPU offline) then the other not-required callback can be set to NULL when the state is set up.h]hIf a usage site requires only a callback in one direction of the hotplug operations (CPU online or CPU offline) then the other not-required callback can be set to NULL when the state is set up.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(h/The state space is divided into three sections:h]h/The state space is divided into three sections:}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hhh](j#)}(hXThe PREPARE section The PREPARE section covers the state space from CPUHP_OFFLINE to CPUHP_BRINGUP_CPU. The startup callbacks in this section are invoked before the CPU is started during a CPU online operation. The teardown callbacks are invoked after the CPU has become dysfunctional during a CPU offline operation. The callbacks are invoked on a control CPU as they can't obviously run on the hotplugged CPU which is either not yet started or has become dysfunctional already. The startup callbacks are used to setup resources which are required to bring a CPU successfully online. The teardown callbacks are used to free resources or to move pending work to an online CPU after the hotplugged CPU became dysfunctional. The startup callbacks are allowed to fail. If a callback fails, the CPU online operation is aborted and the CPU is brought down to the previous state (usually CPUHP_OFFLINE) again. The teardown callbacks in this section are not allowed to fail. h](h)}(hThe PREPARE sectionh]hThe PREPARE section}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjAubh)}(hSThe PREPARE section covers the state space from CPUHP_OFFLINE to CPUHP_BRINGUP_CPU.h]hSThe PREPARE section covers the state space from CPUHP_OFFLINE to CPUHP_BRINGUP_CPU.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjAubh)}(hThe startup callbacks in this section are invoked before the CPU is started during a CPU online operation. The teardown callbacks are invoked after the CPU has become dysfunctional during a CPU offline operation.h]hThe startup callbacks in this section are invoked before the CPU is started during a CPU online operation. The teardown callbacks are invoked after the CPU has become dysfunctional during a CPU offline operation.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjAubh)}(hThe callbacks are invoked on a control CPU as they can't obviously run on the hotplugged CPU which is either not yet started or has become dysfunctional already.h]hThe callbacks are invoked on a control CPU as they can’t obviously run on the hotplugged CPU which is either not yet started or has become dysfunctional already.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjAubh)}(hThe startup callbacks are used to setup resources which are required to bring a CPU successfully online. The teardown callbacks are used to free resources or to move pending work to an online CPU after the hotplugged CPU became dysfunctional.h]hThe startup callbacks are used to setup resources which are required to bring a CPU successfully online. The teardown callbacks are used to free resources or to move pending work to an online CPU after the hotplugged CPU became dysfunctional.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjAubh)}(hThe startup callbacks are allowed to fail. If a callback fails, the CPU online operation is aborted and the CPU is brought down to the previous state (usually CPUHP_OFFLINE) again.h]hThe startup callbacks are allowed to fail. If a callback fails, the CPU online operation is aborted and the CPU is brought down to the previous state (usually CPUHP_OFFLINE) again.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjAubh)}(h?The teardown callbacks in this section are not allowed to fail.h]h?The teardown callbacks in this section are not allowed to fail.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjAubeh}(h]h ]h"]h$]h&]uh1j"hj>hhhhhNubj#)}(hXKThe STARTING section The STARTING section covers the state space between CPUHP_BRINGUP_CPU + 1 and CPUHP_AP_ONLINE. The startup callbacks in this section are invoked on the hotplugged CPU with interrupts disabled during a CPU online operation in the early CPU setup code. The teardown callbacks are invoked with interrupts disabled on the hotplugged CPU during a CPU offline operation shortly before the CPU is completely shut down. The callbacks in this section are not allowed to fail. The callbacks are used for low level hardware initialization/shutdown and for core subsystems. h](h)}(hThe STARTING sectionh]hThe STARTING section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(h^The STARTING section covers the state space between CPUHP_BRINGUP_CPU + 1 and CPUHP_AP_ONLINE.h]h^The STARTING section covers the state space between CPUHP_BRINGUP_CPU + 1 and CPUHP_AP_ONLINE.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hX<The startup callbacks in this section are invoked on the hotplugged CPU with interrupts disabled during a CPU online operation in the early CPU setup code. The teardown callbacks are invoked with interrupts disabled on the hotplugged CPU during a CPU offline operation shortly before the CPU is completely shut down.h]hX<The startup callbacks in this section are invoked on the hotplugged CPU with interrupts disabled during a CPU online operation in the early CPU setup code. The teardown callbacks are invoked with interrupts disabled on the hotplugged CPU during a CPU offline operation shortly before the CPU is completely shut down.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(h6The callbacks in this section are not allowed to fail.h]h6The callbacks in this section are not allowed to fail.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(h^The callbacks are used for low level hardware initialization/shutdown and for core subsystems.h]h^The callbacks are used for low level hardware initialization/shutdown and for core subsystems.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubeh}(h]h ]h"]h$]h&]uh1j"hj>hhhhhNubj#)}(hXmThe ONLINE section The ONLINE section covers the state space between CPUHP_AP_ONLINE + 1 and CPUHP_ONLINE. The startup callbacks in this section are invoked on the hotplugged CPU during a CPU online operation. The teardown callbacks are invoked on the hotplugged CPU during a CPU offline operation. The callbacks are invoked in the context of the per CPU hotplug thread, which is pinned on the hotplugged CPU. The callbacks are invoked with interrupts and preemption enabled. The callbacks are allowed to fail. When a callback fails the hotplug operation is aborted and the CPU is brought back to the previous state. h](h)}(hThe ONLINE sectionh]hThe ONLINE section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hWThe ONLINE section covers the state space between CPUHP_AP_ONLINE + 1 and CPUHP_ONLINE.h]hWThe ONLINE section covers the state space between CPUHP_AP_ONLINE + 1 and CPUHP_ONLINE.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hThe startup callbacks in this section are invoked on the hotplugged CPU during a CPU online operation. The teardown callbacks are invoked on the hotplugged CPU during a CPU offline operation.h]hThe startup callbacks in this section are invoked on the hotplugged CPU during a CPU online operation. The teardown callbacks are invoked on the hotplugged CPU during a CPU offline operation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hThe callbacks are invoked in the context of the per CPU hotplug thread, which is pinned on the hotplugged CPU. The callbacks are invoked with interrupts and preemption enabled.h]hThe callbacks are invoked in the context of the per CPU hotplug thread, which is pinned on the hotplugged CPU. The callbacks are invoked with interrupts and preemption enabled.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hThe callbacks are allowed to fail. When a callback fails the hotplug operation is aborted and the CPU is brought back to the previous state.h]hThe callbacks are allowed to fail. When a callback fails the hotplug operation is aborted and the CPU is brought back to the previous state.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubeh}(h]h ]h"]h$]h&]uh1j"hj>hhhhhNubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhjhhubeh}(h]cpu-hotplug-state-machineah ]h"]cpu hotplug state machineah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hCPU online/offline operationsh]hCPU online/offline operations}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hhhhhKubh)}(h/A successful online operation looks like this::h]h.A successful online operation looks like this:}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj[hhubj)}(hX[CPUHP_OFFLINE] [CPUHP_OFFLINE + 1]->startup() -> success [CPUHP_OFFLINE + 2]->startup() -> success [CPUHP_OFFLINE + 3] -> skipped because startup == NULL ... [CPUHP_BRINGUP_CPU]->startup() -> success === End of PREPARE section [CPUHP_BRINGUP_CPU + 1]->startup() -> success ... [CPUHP_AP_ONLINE]->startup() -> success === End of STARTUP section [CPUHP_AP_ONLINE + 1]->startup() -> success ... [CPUHP_ONLINE - 1]->startup() -> success [CPUHP_ONLINE]h]hX[CPUHP_OFFLINE] [CPUHP_OFFLINE + 1]->startup() -> success [CPUHP_OFFLINE + 2]->startup() -> success [CPUHP_OFFLINE + 3] -> skipped because startup == NULL ... [CPUHP_BRINGUP_CPU]->startup() -> success === End of PREPARE section [CPUHP_BRINGUP_CPU + 1]->startup() -> success ... [CPUHP_AP_ONLINE]->startup() -> success === End of STARTUP section [CPUHP_AP_ONLINE + 1]->startup() -> success ... [CPUHP_ONLINE - 1]->startup() -> success [CPUHP_ONLINE]}hjzsbah}(h]h ]h"]h$]h&]jjuh1jhhhKhj[hhubh)}(h0A successful offline operation looks like this::h]h/A successful offline operation looks like this:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj[hhubj)}(hX[CPUHP_ONLINE] [CPUHP_ONLINE - 1]->teardown() -> success ... [CPUHP_AP_ONLINE + 1]->teardown() -> success === Start of STARTUP section [CPUHP_AP_ONLINE]->teardown() -> success ... [CPUHP_BRINGUP_ONLINE - 1]->teardown() ... === Start of PREPARE section [CPUHP_BRINGUP_CPU]->teardown() [CPUHP_OFFLINE + 3]->teardown() [CPUHP_OFFLINE + 2] -> skipped because teardown == NULL [CPUHP_OFFLINE + 1]->teardown() [CPUHP_OFFLINE]h]hX[CPUHP_ONLINE] [CPUHP_ONLINE - 1]->teardown() -> success ... [CPUHP_AP_ONLINE + 1]->teardown() -> success === Start of STARTUP section [CPUHP_AP_ONLINE]->teardown() -> success ... [CPUHP_BRINGUP_ONLINE - 1]->teardown() ... === Start of PREPARE section [CPUHP_BRINGUP_CPU]->teardown() [CPUHP_OFFLINE + 3]->teardown() [CPUHP_OFFLINE + 2] -> skipped because teardown == NULL [CPUHP_OFFLINE + 1]->teardown() [CPUHP_OFFLINE]}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhKhj[hhubh)}(h+A failed online operation looks like this::h]h*A failed online operation looks like this:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj[hhubj)}(hXt[CPUHP_OFFLINE] [CPUHP_OFFLINE + 1]->startup() -> success [CPUHP_OFFLINE + 2]->startup() -> success [CPUHP_OFFLINE + 3] -> skipped because startup == NULL ... [CPUHP_BRINGUP_CPU]->startup() -> success === End of PREPARE section [CPUHP_BRINGUP_CPU + 1]->startup() -> success ... [CPUHP_AP_ONLINE]->startup() -> success === End of STARTUP section [CPUHP_AP_ONLINE + 1]->startup() -> success --- [CPUHP_AP_ONLINE + N]->startup() -> fail [CPUHP_AP_ONLINE + (N - 1)]->teardown() ... [CPUHP_AP_ONLINE + 1]->teardown() === Start of STARTUP section [CPUHP_AP_ONLINE]->teardown() ... [CPUHP_BRINGUP_ONLINE - 1]->teardown() ... === Start of PREPARE section [CPUHP_BRINGUP_CPU]->teardown() [CPUHP_OFFLINE + 3]->teardown() [CPUHP_OFFLINE + 2] -> skipped because teardown == NULL [CPUHP_OFFLINE + 1]->teardown() [CPUHP_OFFLINE]h]hXt[CPUHP_OFFLINE] [CPUHP_OFFLINE + 1]->startup() -> success [CPUHP_OFFLINE + 2]->startup() -> success [CPUHP_OFFLINE + 3] -> skipped because startup == NULL ... [CPUHP_BRINGUP_CPU]->startup() -> success === End of PREPARE section [CPUHP_BRINGUP_CPU + 1]->startup() -> success ... [CPUHP_AP_ONLINE]->startup() -> success === End of STARTUP section [CPUHP_AP_ONLINE + 1]->startup() -> success --- [CPUHP_AP_ONLINE + N]->startup() -> fail [CPUHP_AP_ONLINE + (N - 1)]->teardown() ... [CPUHP_AP_ONLINE + 1]->teardown() === Start of STARTUP section [CPUHP_AP_ONLINE]->teardown() ... [CPUHP_BRINGUP_ONLINE - 1]->teardown() ... === Start of PREPARE section [CPUHP_BRINGUP_CPU]->teardown() [CPUHP_OFFLINE + 3]->teardown() [CPUHP_OFFLINE + 2] -> skipped because teardown == NULL [CPUHP_OFFLINE + 1]->teardown() [CPUHP_OFFLINE]}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhMhj[hhubh)}(h,A failed offline operation looks like this::h]h+A failed offline operation looks like this:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM,hj[hhubj)}(h[CPUHP_ONLINE] [CPUHP_ONLINE - 1]->teardown() -> success ... [CPUHP_ONLINE - N]->teardown() -> fail [CPUHP_ONLINE - (N - 1)]->startup() ... [CPUHP_ONLINE - 1]->startup() [CPUHP_ONLINE]h]h[CPUHP_ONLINE] [CPUHP_ONLINE - 1]->teardown() -> success ... [CPUHP_ONLINE - N]->teardown() -> fail [CPUHP_ONLINE - (N - 1)]->startup() ... [CPUHP_ONLINE - 1]->startup() [CPUHP_ONLINE]}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhM.hj[hhubh)}(hRecursive failures cannot be handled sensibly. Look at the following example of a recursive fail due to a failed offline operation: ::h]hRecursive failures cannot be handled sensibly. Look at the following example of a recursive fail due to a failed offline operation:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM7hj[hhubj)}(h[CPUHP_ONLINE] [CPUHP_ONLINE - 1]->teardown() -> success ... [CPUHP_ONLINE - N]->teardown() -> fail [CPUHP_ONLINE - (N - 1)]->startup() -> success [CPUHP_ONLINE - (N - 2)]->startup() -> failh]h[CPUHP_ONLINE] [CPUHP_ONLINE - 1]->teardown() -> success ... [CPUHP_ONLINE - N]->teardown() -> fail [CPUHP_ONLINE - (N - 1)]->startup() -> success [CPUHP_ONLINE - (N - 2)]->startup() -> fail}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhM:hj[hhubh)}(hThe CPU hotplug state machine stops right here and does not try to go back down again because that would likely result in an endless loop::h]hThe CPU hotplug state machine stops right here and does not try to go back down again because that would likely result in an endless loop:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMAhj[hhubj)}(hX[CPUHP_ONLINE - (N - 1)]->teardown() -> success [CPUHP_ONLINE - N]->teardown() -> fail [CPUHP_ONLINE - (N - 1)]->startup() -> success [CPUHP_ONLINE - (N - 2)]->startup() -> fail [CPUHP_ONLINE - (N - 1)]->teardown() -> success [CPUHP_ONLINE - N]->teardown() -> failh]hX[CPUHP_ONLINE - (N - 1)]->teardown() -> success [CPUHP_ONLINE - N]->teardown() -> fail [CPUHP_ONLINE - (N - 1)]->startup() -> success [CPUHP_ONLINE - (N - 2)]->startup() -> fail [CPUHP_ONLINE - (N - 1)]->teardown() -> success [CPUHP_ONLINE - N]->teardown() -> fail}hj sbah}(h]h ]h"]h$]h&]jjuh1jhhhMDhj[hhubh)}(h>Lather, rinse and repeat. In this case the CPU left in state::h]h=Lather, rinse and repeat. In this case the CPU left in state:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMKhj[hhubj)}(h[CPUHP_ONLINE - (N - 1)]h]h[CPUHP_ONLINE - (N - 1)]}hj" sbah}(h]h ]h"]h$]h&]jjuh1jhhhMMhj[hhubh)}(hpwhich at least lets the system make progress and gives the user a chance to debug or even resolve the situation.h]hpwhich at least lets the system make progress and gives the user a chance to debug or even resolve the situation.}(hj0 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMOhj[hhubeh}(h]cpu-online-offline-operationsah ]h"]cpu online/offline operationsah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hAllocating a stateh]hAllocating a state}(hjI hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjF hhhhhMSubh)}(h3There are two ways to allocate a CPU hotplug state:h]h3There are two ways to allocate a CPU hotplug state:}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMUhjF hhubj)}(hhh](j#)}(hXHStatic allocation Static allocation has to be used when the subsystem or driver has ordering requirements versus other CPU hotplug states. E.g. the PERF core startup callback has to be invoked before the PERF driver startup callbacks during a CPU online operation. During a CPU offline operation the driver teardown callbacks have to be invoked before the core teardown callback. The statically allocated states are described by constants in the cpuhp_state enum which can be found in include/linux/cpuhotplug.h. Insert the state into the enum at the proper place so the ordering requirements are fulfilled. The state constant has to be used for state setup and removal. Static allocation is also required when the state callbacks are not set up at runtime and are part of the initializer of the CPU hotplug state array in kernel/cpu.c. h](h)}(hStatic allocationh]hStatic allocation}(hjl hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMWhjh ubh)}(hXStatic allocation has to be used when the subsystem or driver has ordering requirements versus other CPU hotplug states. E.g. the PERF core startup callback has to be invoked before the PERF driver startup callbacks during a CPU online operation. During a CPU offline operation the driver teardown callbacks have to be invoked before the core teardown callback. The statically allocated states are described by constants in the cpuhp_state enum which can be found in include/linux/cpuhotplug.h.h]hXStatic allocation has to be used when the subsystem or driver has ordering requirements versus other CPU hotplug states. E.g. the PERF core startup callback has to be invoked before the PERF driver startup callbacks during a CPU online operation. During a CPU offline operation the driver teardown callbacks have to be invoked before the core teardown callback. The statically allocated states are described by constants in the cpuhp_state enum which can be found in include/linux/cpuhotplug.h.}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMYhjh ubh)}(hInsert the state into the enum at the proper place so the ordering requirements are fulfilled. The state constant has to be used for state setup and removal.h]hInsert the state into the enum at the proper place so the ordering requirements are fulfilled. The state constant has to be used for state setup and removal.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMahjh ubh)}(hStatic allocation is also required when the state callbacks are not set up at runtime and are part of the initializer of the CPU hotplug state array in kernel/cpu.c.h]hStatic allocation is also required when the state callbacks are not set up at runtime and are part of the initializer of the CPU hotplug state array in kernel/cpu.c.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMehjh ubeh}(h]h ]h"]h$]h&]uh1j"hje hhhhhNubj#)}(hXDynamic allocation When there are no ordering requirements for the state callbacks then dynamic allocation is the preferred method. The state number is allocated by the setup function and returned to the caller on success. Only the PREPARE and ONLINE sections provide a dynamic allocation range. The STARTING section does not as most of the callbacks in that section have explicit ordering requirements. h](h)}(hDynamic allocationh]hDynamic allocation}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMihj ubh)}(hWhen there are no ordering requirements for the state callbacks then dynamic allocation is the preferred method. The state number is allocated by the setup function and returned to the caller on success.h]hWhen there are no ordering requirements for the state callbacks then dynamic allocation is the preferred method. The state number is allocated by the setup function and returned to the caller on success.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMkhj ubh)}(hOnly the PREPARE and ONLINE sections provide a dynamic allocation range. The STARTING section does not as most of the callbacks in that section have explicit ordering requirements.h]hOnly the PREPARE and ONLINE sections provide a dynamic allocation range. The STARTING section does not as most of the callbacks in that section have explicit ordering requirements.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMohj ubeh}(h]h ]h"]h$]h&]uh1j"hje hhhhhNubeh}(h]h ]h"]h$]h&]jjuh1jhhhMWhjF hhubeh}(h]allocating-a-stateah ]h"]allocating a stateah$]h&]uh1hhjhhhhhMSubh)}(hhh](h)}(hSetup of a CPU hotplug stateh]hSetup of a CPU hotplug state}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhMtubh)}(h@The core code provides the following functions to setup a state:h]h@The core code provides the following functions to setup a state:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMvhj hhubj)}(hhh](j#)}(h1cpuhp_setup_state(state, name, startup, teardown)h]h)}(hj h]h1cpuhp_setup_state(state, name, startup, teardown)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMxhj ubah}(h]h ]h"]h$]h&]uh1j"hj hhhhhNubj#)}(h9cpuhp_setup_state_nocalls(state, name, startup, teardown)h]h)}(hj' h]h9cpuhp_setup_state_nocalls(state, name, startup, teardown)}(hj) hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMyhj% ubah}(h]h ]h"]h$]h&]uh1j"hj hhhhhNubj#)}(h h]h0 Dynamically allocated state was successfully set up. The returned number is the state number which was allocated. If the state callbacks have to be removed later, e.g. module removal, then this number has to be saved by the caller and used as @state argument for the state remove function. For multi-instance states the dynamically allocated state number is also required as @state argument for the instance add/remove operations. <0 Operation failed ======== =================================================================== \h](j)}(hThe function return values:h]hThe function return values:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubj)}(hhh]j )}(hhh]j )}(hhh](j )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj ubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKCuh1j hj ubj )}(hhh](j )}(hhh](j )}(hhh]h)}(h0h]h0}(hj$ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj! ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(h2Statically allocated state was successfully set uph]h2Statically allocated state was successfully set up}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj8 ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h>0h]h>0}(hj[ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjX ubah}(h]h ]h"]h$]h&]uh1j hjU ubj )}(hhh](h)}(h4Dynamically allocated state was successfully set up.h]h4Dynamically allocated state was successfully set up.}(hjr hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjo ubh)}(hXyThe returned number is the state number which was allocated. If the state callbacks have to be removed later, e.g. module removal, then this number has to be saved by the caller and used as @state argument for the state remove function. For multi-instance states the dynamically allocated state number is also required as @state argument for the instance add/remove operations.h]hXyThe returned number is the state number which was allocated. If the state callbacks have to be removed later, e.g. module removal, then this number has to be saved by the caller and used as @state argument for the state remove function. For multi-instance states the dynamically allocated state number is also required as @state argument for the instance add/remove operations.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjo ubeh}(h]h ]h"]h$]h&]uh1j hjU ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(h<0h]h<0}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(hOperation failedh]hOperation failed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]colsKuh1j hj ubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj hhhhhNubeh}(h]setup-of-a-cpu-hotplug-stateah ]h"]setup of a cpu hotplug stateah$]h&]uh1hhjhhhhhMtubh)}(hhh](h)}(hRemoval of a CPU hotplug stateh]hRemoval of a CPU hotplug state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhMubh)}(hJTo remove a previously set up state, the following functions are provided:h]hJTo remove a previously set up state, the following functions are provided:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubj)}(hhh](j#)}(hcpuhp_remove_state(state)h]h)}(hj"h]hcpuhp_remove_state(state)}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubah}(h]h ]h"]h$]h&]uh1j"hjhhhhhNubj#)}(h!cpuhp_remove_state_nocalls(state)h]h)}(hj9h]h!cpuhp_remove_state_nocalls(state)}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj7ubah}(h]h ]h"]h$]h&]uh1j"hjhhhhhNubj#)}(h,cpuhp_remove_state_nocalls_cpuslocked(state)h]h)}(hjPh]h,cpuhp_remove_state_nocalls_cpuslocked(state)}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjNubah}(h]h ]h"]h$]h&]uh1j"hjhhhhhNubj#)}(h cpuhp_remove_multi_state(state) h]h)}(hcpuhp_remove_multi_state(state)h]hcpuhp_remove_multi_state(state)}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjeubah}(h]h ]h"]h$]h&]uh1j"hjhhhhhNubeh}(h]h ]h"]h$]h&]jjuh1jhhhMhj hhubh)}(hXThe @state argument is either a statically allocated state or the state number which was allocated in the dynamic range by cpuhp_setup_state*(). If the state is in the dynamic range, then the state number is freed and available for dynamic allocation again.h]hXThe @state argument is either a statically allocated state or the state number which was allocated in the dynamic range by cpuhp_setup_state*(). If the state is in the dynamic range, then the state number is freed and available for dynamic allocation again.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hHThe functions differ in the way how the installed callbacks are treated:h]hHThe functions differ in the way how the installed callbacks are treated:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubj )}(hX?* cpuhp_remove_state_nocalls(), cpuhp_remove_state_nocalls_cpuslocked() and cpuhp_remove_multi_state() only remove the callbacks. * cpuhp_remove_state() removes the callbacks and invokes the teardown callback (if not NULL) for all online CPUs which have currently a state greater than the removed state. Depending on the state section the callback is either invoked on the current CPU (PREPARE section) or on each online CPU (ONLINE section) in the context of the CPU's hotplug thread. In order to complete the removal, the teardown callback should not fail. h]j)}(hhh](j#)}(hcpuhp_remove_state_nocalls(), cpuhp_remove_state_nocalls_cpuslocked() and cpuhp_remove_multi_state() only remove the callbacks. h]h)}(hcpuhp_remove_state_nocalls(), cpuhp_remove_state_nocalls_cpuslocked() and cpuhp_remove_multi_state() only remove the callbacks.h]hcpuhp_remove_state_nocalls(), cpuhp_remove_state_nocalls_cpuslocked() and cpuhp_remove_multi_state() only remove the callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j"hjubj#)}(hXcpuhp_remove_state() removes the callbacks and invokes the teardown callback (if not NULL) for all online CPUs which have currently a state greater than the removed state. Depending on the state section the callback is either invoked on the current CPU (PREPARE section) or on each online CPU (ONLINE section) in the context of the CPU's hotplug thread. In order to complete the removal, the teardown callback should not fail. h](h)}(hXacpuhp_remove_state() removes the callbacks and invokes the teardown callback (if not NULL) for all online CPUs which have currently a state greater than the removed state. Depending on the state section the callback is either invoked on the current CPU (PREPARE section) or on each online CPU (ONLINE section) in the context of the CPU's hotplug thread.h]hXccpuhp_remove_state() removes the callbacks and invokes the teardown callback (if not NULL) for all online CPUs which have currently a state greater than the removed state. Depending on the state section the callback is either invoked on the current CPU (PREPARE section) or on each online CPU (ONLINE section) in the context of the CPU’s hotplug thread.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(hHIn order to complete the removal, the teardown callback should not fail.h]hHIn order to complete the removal, the teardown callback should not fail.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubeh}(h]h ]h"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]jjuh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1j hhhMhj hhubh)}(hXThe state removal and the callback invocations are serialized against CPU hotplug operations. If the remove function has to be called from a CPU hotplug read locked region, then the _cpuslocked() variants have to be used. These functions cannot be used from within CPU hotplug callbacks.h]hXThe state removal and the callback invocations are serialized against CPU hotplug operations. If the remove function has to be called from a CPU hotplug read locked region, then the _cpuslocked() variants have to be used. These functions cannot be used from within CPU hotplug callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hWIf a multi-instance state is removed then the caller has to remove all instances first.h]hWIf a multi-instance state is removed then the caller has to remove all instances first.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubeh}(h]removal-of-a-cpu-hotplug-stateah ]h"]removal of a cpu hotplug stateah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(h(Multi-Instance state instance managementh]h(Multi-Instance state instance management}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hMOnce the multi-instance state is set up, instances can be added to the state:h]hMOnce the multi-instance state is set up, instances can be added to the state:}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj )}(hX* cpuhp_state_add_instance(state, node) * cpuhp_state_add_instance_nocalls(state, node) h]j)}(hhh](j#)}(h%cpuhp_state_add_instance(state, node)h]h)}(hj<h]h%cpuhp_state_add_instance(state, node)}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj:ubah}(h]h ]h"]h$]h&]uh1j"hj7ubj#)}(h.cpuhp_state_add_instance_nocalls(state, node) h]h)}(h-cpuhp_state_add_instance_nocalls(state, node)h]h-cpuhp_state_add_instance_nocalls(state, node)}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjQubah}(h]h ]h"]h$]h&]uh1j"hj7ubeh}(h]h ]h"]h$]h&]jjuh1jhhhMhj3ubah}(h]h ]h"]h$]h&]uh1j hhhMhjhhubh)}(hThe @state argument is either a statically allocated state or the state number which was allocated in the dynamic range by cpuhp_setup_state_multi().h]hThe @state argument is either a statically allocated state or the state number which was allocated in the dynamic range by cpuhp_setup_state_multi().}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hThe @node argument is a pointer to an hlist_node which is embedded in the instance's data structure. The pointer is handed to the multi-instance state callbacks and can be used by the callback to retrieve the instance via container_of().h]hThe @node argument is a pointer to an hlist_node which is embedded in the instance’s data structure. The pointer is handed to the multi-instance state callbacks and can be used by the callback to retrieve the instance via container_of().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hHThe functions differ in the way how the installed callbacks are treated:h]hHThe functions differ in the way how the installed callbacks are treated:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjhhubj )}(hX* cpuhp_state_add_instance_nocalls() and only adds the instance to the multi-instance state's node list. * cpuhp_state_add_instance() adds the instance and invokes the startup callback (if not NULL) associated with @state for all online CPUs which have currently a state greater than @state. The callback is only invoked for the to be added instance. Depending on the state section the callback is either invoked on the current CPU (PREPARE section) or on each online CPU (ONLINE section) in the context of the CPU's hotplug thread. If a callback fails for CPU N then the teardown callback for CPU 0 .. N-1 is invoked to rollback the operation, the function fails and the instance is not added to the node list of the multi-instance state. h]j)}(hhh](j#)}(hgcpuhp_state_add_instance_nocalls() and only adds the instance to the multi-instance state's node list. h]h)}(hfcpuhp_state_add_instance_nocalls() and only adds the instance to the multi-instance state's node list.h]hhcpuhp_state_add_instance_nocalls() and only adds the instance to the multi-instance state’s node list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j"hjubj#)}(hXzcpuhp_state_add_instance() adds the instance and invokes the startup callback (if not NULL) associated with @state for all online CPUs which have currently a state greater than @state. The callback is only invoked for the to be added instance. Depending on the state section the callback is either invoked on the current CPU (PREPARE section) or on each online CPU (ONLINE section) in the context of the CPU's hotplug thread. If a callback fails for CPU N then the teardown callback for CPU 0 .. N-1 is invoked to rollback the operation, the function fails and the instance is not added to the node list of the multi-instance state. h](h)}(hXcpuhp_state_add_instance() adds the instance and invokes the startup callback (if not NULL) associated with @state for all online CPUs which have currently a state greater than @state. The callback is only invoked for the to be added instance. Depending on the state section the callback is either invoked on the current CPU (PREPARE section) or on each online CPU (ONLINE section) in the context of the CPU's hotplug thread.h]hXcpuhp_state_add_instance() adds the instance and invokes the startup callback (if not NULL) associated with @state for all online CPUs which have currently a state greater than @state. The callback is only invoked for the to be added instance. Depending on the state section the callback is either invoked on the current CPU (PREPARE section) or on each online CPU (ONLINE section) in the context of the CPU’s hotplug thread.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubh)}(hIf a callback fails for CPU N then the teardown callback for CPU 0 .. N-1 is invoked to rollback the operation, the function fails and the instance is not added to the node list of the multi-instance state.h]hIf a callback fails for CPU N then the teardown callback for CPU 0 .. N-1 is invoked to rollback the operation, the function fails and the instance is not added to the node list of the multi-instance state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubeh}(h]h ]h"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]jjuh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1j hhhMhjhhubh)}(hOTo remove an instance from the state's node list these functions are available:h]hQTo remove an instance from the state’s node list these functions are available:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj )}(h^* cpuhp_state_remove_instance(state, node) * cpuhp_state_remove_instance_nocalls(state, node) h]j)}(hhh](j#)}(h(cpuhp_state_remove_instance(state, node)h]h)}(hjh]h(cpuhp_state_remove_instance(state, node)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM!hjubah}(h]h ]h"]h$]h&]uh1j"hjubj#)}(h1cpuhp_state_remove_instance_nocalls(state, node) h]h)}(h0cpuhp_state_remove_instance_nocalls(state, node)h]h0cpuhp_state_remove_instance_nocalls(state, node)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM"hjubah}(h]h ]h"]h$]h&]uh1j"hjubeh}(h]h ]h"]h$]h&]jjuh1jhhhM!hjubah}(h]h ]h"]h$]h&]uh1j hhhM!hjhhubh)}(hQThe arguments are the same as for the cpuhp_state_add_instance*() variants above.h]hQThe arguments are the same as for the cpuhp_state_add_instance*() variants above.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM$hjhhubh)}(hHThe functions differ in the way how the installed callbacks are treated:h]hHThe functions differ in the way how the installed callbacks are treated:}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM'hjhhubj )}(hXp* cpuhp_state_remove_instance_nocalls() only removes the instance from the state's node list. * cpuhp_state_remove_instance() removes the instance and invokes the teardown callback (if not NULL) associated with @state for all online CPUs which have currently a state greater than @state. The callback is only invoked for the to be removed instance. Depending on the state section the callback is either invoked on the current CPU (PREPARE section) or on each online CPU (ONLINE section) in the context of the CPU's hotplug thread. In order to complete the removal, the teardown callback should not fail. h]j)}(hhh](j#)}(h\cpuhp_state_remove_instance_nocalls() only removes the instance from the state's node list. h]h)}(h[cpuhp_state_remove_instance_nocalls() only removes the instance from the state's node list.h]h]cpuhp_state_remove_instance_nocalls() only removes the instance from the state’s node list.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM)hjcubah}(h]h ]h"]h$]h&]uh1j"hj`ubj#)}(hXcpuhp_state_remove_instance() removes the instance and invokes the teardown callback (if not NULL) associated with @state for all online CPUs which have currently a state greater than @state. The callback is only invoked for the to be removed instance. Depending on the state section the callback is either invoked on the current CPU (PREPARE section) or on each online CPU (ONLINE section) in the context of the CPU's hotplug thread. In order to complete the removal, the teardown callback should not fail. h](h)}(hXcpuhp_state_remove_instance() removes the instance and invokes the teardown callback (if not NULL) associated with @state for all online CPUs which have currently a state greater than @state. The callback is only invoked for the to be removed instance. Depending on the state section the callback is either invoked on the current CPU (PREPARE section) or on each online CPU (ONLINE section) in the context of the CPU's hotplug thread.h]hXcpuhp_state_remove_instance() removes the instance and invokes the teardown callback (if not NULL) associated with @state for all online CPUs which have currently a state greater than @state. The callback is only invoked for the to be removed instance. Depending on the state section the callback is either invoked on the current CPU (PREPARE section) or on each online CPU (ONLINE section) in the context of the CPU’s hotplug thread.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM,hj{ubh)}(hHIn order to complete the removal, the teardown callback should not fail.h]hHIn order to complete the removal, the teardown callback should not fail.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM4hj{ubeh}(h]h ]h"]h$]h&]uh1j"hj`ubeh}(h]h ]h"]h$]h&]jjuh1jhhhM)hj\ubah}(h]h ]h"]h$]h&]uh1j hhhM)hjhhubh)}(hThe node list add/remove operations and the callback invocations are serialized against CPU hotplug operations. These functions cannot be used from within CPU hotplug callbacks and CPU hotplug read locked regions.h]hThe node list add/remove operations and the callback invocations are serialized against CPU hotplug operations. These functions cannot be used from within CPU hotplug callbacks and CPU hotplug read locked regions.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM6hjhhubeh}(h](multi-instance-state-instance-managementah ]h"](multi-instance state instance managementah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(hExamplesh]hExamples}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM;ubh)}(h|Setup and teardown a statically allocated state in the STARTING section for notifications on online and offline operations::h]h{Setup and teardown a statically allocated state in the STARTING section for notifications on online and offline operations:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM=hjhhubj)}(hret = cpuhp_setup_state(CPUHP_SUBSYS_STARTING, "subsys:starting", subsys_cpu_starting, subsys_cpu_dying); if (ret < 0) return ret; .... cpuhp_remove_state(CPUHP_SUBSYS_STARTING);h]hret = cpuhp_setup_state(CPUHP_SUBSYS_STARTING, "subsys:starting", subsys_cpu_starting, subsys_cpu_dying); if (ret < 0) return ret; .... cpuhp_remove_state(CPUHP_SUBSYS_STARTING);}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhM@hjhhubh)}(hpSetup and teardown a dynamically allocated state in the ONLINE section for notifications on offline operations::h]hoSetup and teardown a dynamically allocated state in the ONLINE section for notifications on offline operations:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMFhjhhubj)}(hstate = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "subsys:offline", NULL, subsys_cpu_offline); if (state < 0) return state; .... cpuhp_remove_state(state);h]hstate = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "subsys:offline", NULL, subsys_cpu_offline); if (state < 0) return state; .... cpuhp_remove_state(state);}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhMIhjhhubh)}(hSetup and teardown a dynamically allocated state in the ONLINE section for notifications on online operations without invoking the callbacks::h]hSetup and teardown a dynamically allocated state in the ONLINE section for notifications on online operations without invoking the callbacks:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMOhjhhubj)}(hstate = cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN, "subsys:online", subsys_cpu_online, NULL); if (state < 0) return state; .... cpuhp_remove_state_nocalls(state);h]hstate = cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN, "subsys:online", subsys_cpu_online, NULL); if (state < 0) return state; .... cpuhp_remove_state_nocalls(state);}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhMRhjhhubh)}(hSetup, use and teardown a dynamically allocated multi-instance state in the ONLINE section for notifications on online and offline operation::h]hSetup, use and teardown a dynamically allocated multi-instance state in the ONLINE section for notifications on online and offline operation:}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMXhjhhubj)}(hXstate = cpuhp_setup_state_multi(CPUHP_AP_ONLINE_DYN, "subsys:online", subsys_cpu_online, subsys_cpu_offline); if (state < 0) return state; .... ret = cpuhp_state_add_instance(state, &inst1->node); if (ret) return ret; .... ret = cpuhp_state_add_instance(state, &inst2->node); if (ret) return ret; .... cpuhp_remove_instance(state, &inst1->node); .... cpuhp_remove_instance(state, &inst2->node); .... cpuhp_remove_multi_state(state);h]hXstate = cpuhp_setup_state_multi(CPUHP_AP_ONLINE_DYN, "subsys:online", subsys_cpu_online, subsys_cpu_offline); if (state < 0) return state; .... ret = cpuhp_state_add_instance(state, &inst1->node); if (ret) return ret; .... ret = cpuhp_state_add_instance(state, &inst2->node); if (ret) return ret; .... cpuhp_remove_instance(state, &inst1->node); .... cpuhp_remove_instance(state, &inst2->node); .... cpuhp_remove_multi_state(state);}hj6sbah}(h]h ]h"]h$]h&]jjuh1jhhhM[hjhhubeh}(h]examplesah ]h"]examplesah$]h&]uh1hhjhhhhhM;ubeh}(h]the-cpu-hotplug-apiah ]h"]the cpu hotplug apiah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hTesting of hotplug statesh]hTesting of hotplug states}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThhhhhMoubh)}(hXcOne way to verify whether a custom state is working as expected or not is to shutdown a CPU and then put it online again. It is also possible to put the CPU to certain state (for instance *CPUHP_AP_ONLINE*) and then go back to *CPUHP_ONLINE*. This would simulate an error one state after *CPUHP_AP_ONLINE* which would lead to rollback to the online state.h](hOne way to verify whether a custom state is working as expected or not is to shutdown a CPU and then put it online again. It is also possible to put the CPU to certain state (for instance }(hjehhhNhNubj))}(h*CPUHP_AP_ONLINE*h]hCPUHP_AP_ONLINE}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j(hjeubh) and then go back to }(hjehhhNhNubj))}(h*CPUHP_ONLINE*h]h CPUHP_ONLINE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j(hjeubh/. This would simulate an error one state after }(hjehhhNhNubj))}(h*CPUHP_AP_ONLINE*h]hCPUHP_AP_ONLINE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j(hjeubh2 which would lead to rollback to the online state.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMqhjThhubh)}(hUAll registered states are enumerated in ``/sys/devices/system/cpu/hotplug/states`` ::h](h(All registered states are enumerated in }(hjhhhNhNubj)}(h*``/sys/devices/system/cpu/hotplug/states``h]h&/sys/devices/system/cpu/hotplug/states}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhhhMwhjThhubj)}(hX$ tail /sys/devices/system/cpu/hotplug/states 138: mm/vmscan:online 139: mm/vmstat:online 140: lib/percpu_cnt:online 141: acpi/cpu-drv:online 142: base/cacheinfo:online 143: virtio/net:online 144: x86/mce:online 145: printk:online 168: sched:active 169: onlineh]hX$ tail /sys/devices/system/cpu/hotplug/states 138: mm/vmscan:online 139: mm/vmstat:online 140: lib/percpu_cnt:online 141: acpi/cpu-drv:online 142: base/cacheinfo:online 143: virtio/net:online 144: x86/mce:online 145: printk:online 168: sched:active 169: online}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhMyhjThhubh)}(hJTo rollback CPU4 to ``lib/percpu_cnt:online`` and back online just issue::h](hTo rollback CPU4 to }(hjhhhNhNubj)}(h``lib/percpu_cnt:online``h]hlib/percpu_cnt:online}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and back online just issue:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjThhubj)}(h$ cat /sys/devices/system/cpu/cpu4/hotplug/state 169 $ echo 140 > /sys/devices/system/cpu/cpu4/hotplug/target $ cat /sys/devices/system/cpu/cpu4/hotplug/state 140h]h$ cat /sys/devices/system/cpu/cpu4/hotplug/state 169 $ echo 140 > /sys/devices/system/cpu/cpu4/hotplug/target $ cat /sys/devices/system/cpu/cpu4/hotplug/state 140}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhMhjThhubh)}(hlIt is important to note that the teardown callback of state 140 have been invoked. And now get back online::h]hkIt is important to note that the teardown callback of state 140 have been invoked. And now get back online:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjThhubj)}(hm$ echo 169 > /sys/devices/system/cpu/cpu4/hotplug/target $ cat /sys/devices/system/cpu/cpu4/hotplug/state 169h]hm$ echo 169 > /sys/devices/system/cpu/cpu4/hotplug/target $ cat /sys/devices/system/cpu/cpu4/hotplug/state 169}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhMhjThhubh)}(hBWith trace events enabled, the individual steps are visible, too::h]hAWith trace events enabled, the individual steps are visible, too:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjThhubj)}(hX# TASK-PID CPU# TIMESTAMP FUNCTION # | | | | | bash-394 [001] 22.976: cpuhp_enter: cpu: 0004 target: 140 step: 169 (cpuhp_kick_ap_work) cpuhp/4-31 [004] 22.977: cpuhp_enter: cpu: 0004 target: 140 step: 168 (sched_cpu_deactivate) cpuhp/4-31 [004] 22.990: cpuhp_exit: cpu: 0004 state: 168 step: 168 ret: 0 cpuhp/4-31 [004] 22.991: cpuhp_enter: cpu: 0004 target: 140 step: 144 (mce_cpu_pre_down) cpuhp/4-31 [004] 22.992: cpuhp_exit: cpu: 0004 state: 144 step: 144 ret: 0 cpuhp/4-31 [004] 22.993: cpuhp_multi_enter: cpu: 0004 target: 140 step: 143 (virtnet_cpu_down_prep) cpuhp/4-31 [004] 22.994: cpuhp_exit: cpu: 0004 state: 143 step: 143 ret: 0 cpuhp/4-31 [004] 22.995: cpuhp_enter: cpu: 0004 target: 140 step: 142 (cacheinfo_cpu_pre_down) cpuhp/4-31 [004] 22.996: cpuhp_exit: cpu: 0004 state: 142 step: 142 ret: 0 bash-394 [001] 22.997: cpuhp_exit: cpu: 0004 state: 140 step: 169 ret: 0 bash-394 [005] 95.540: cpuhp_enter: cpu: 0004 target: 169 step: 140 (cpuhp_kick_ap_work) cpuhp/4-31 [004] 95.541: cpuhp_enter: cpu: 0004 target: 169 step: 141 (acpi_soft_cpu_online) cpuhp/4-31 [004] 95.542: cpuhp_exit: cpu: 0004 state: 141 step: 141 ret: 0 cpuhp/4-31 [004] 95.543: cpuhp_enter: cpu: 0004 target: 169 step: 142 (cacheinfo_cpu_online) cpuhp/4-31 [004] 95.544: cpuhp_exit: cpu: 0004 state: 142 step: 142 ret: 0 cpuhp/4-31 [004] 95.545: cpuhp_multi_enter: cpu: 0004 target: 169 step: 143 (virtnet_cpu_online) cpuhp/4-31 [004] 95.546: cpuhp_exit: cpu: 0004 state: 143 step: 143 ret: 0 cpuhp/4-31 [004] 95.547: cpuhp_enter: cpu: 0004 target: 169 step: 144 (mce_cpu_online) cpuhp/4-31 [004] 95.548: cpuhp_exit: cpu: 0004 state: 144 step: 144 ret: 0 cpuhp/4-31 [004] 95.549: cpuhp_enter: cpu: 0004 target: 169 step: 145 (console_cpu_notify) cpuhp/4-31 [004] 95.550: cpuhp_exit: cpu: 0004 state: 145 step: 145 ret: 0 cpuhp/4-31 [004] 95.551: cpuhp_enter: cpu: 0004 target: 169 step: 168 (sched_cpu_activate) cpuhp/4-31 [004] 95.552: cpuhp_exit: cpu: 0004 state: 168 step: 168 ret: 0 bash-394 [005] 95.553: cpuhp_exit: cpu: 0004 state: 169 step: 140 ret: 0h]hX# TASK-PID CPU# TIMESTAMP FUNCTION # | | | | | bash-394 [001] 22.976: cpuhp_enter: cpu: 0004 target: 140 step: 169 (cpuhp_kick_ap_work) cpuhp/4-31 [004] 22.977: cpuhp_enter: cpu: 0004 target: 140 step: 168 (sched_cpu_deactivate) cpuhp/4-31 [004] 22.990: cpuhp_exit: cpu: 0004 state: 168 step: 168 ret: 0 cpuhp/4-31 [004] 22.991: cpuhp_enter: cpu: 0004 target: 140 step: 144 (mce_cpu_pre_down) cpuhp/4-31 [004] 22.992: cpuhp_exit: cpu: 0004 state: 144 step: 144 ret: 0 cpuhp/4-31 [004] 22.993: cpuhp_multi_enter: cpu: 0004 target: 140 step: 143 (virtnet_cpu_down_prep) cpuhp/4-31 [004] 22.994: cpuhp_exit: cpu: 0004 state: 143 step: 143 ret: 0 cpuhp/4-31 [004] 22.995: cpuhp_enter: cpu: 0004 target: 140 step: 142 (cacheinfo_cpu_pre_down) cpuhp/4-31 [004] 22.996: cpuhp_exit: cpu: 0004 state: 142 step: 142 ret: 0 bash-394 [001] 22.997: cpuhp_exit: cpu: 0004 state: 140 step: 169 ret: 0 bash-394 [005] 95.540: cpuhp_enter: cpu: 0004 target: 169 step: 140 (cpuhp_kick_ap_work) cpuhp/4-31 [004] 95.541: cpuhp_enter: cpu: 0004 target: 169 step: 141 (acpi_soft_cpu_online) cpuhp/4-31 [004] 95.542: cpuhp_exit: cpu: 0004 state: 141 step: 141 ret: 0 cpuhp/4-31 [004] 95.543: cpuhp_enter: cpu: 0004 target: 169 step: 142 (cacheinfo_cpu_online) cpuhp/4-31 [004] 95.544: cpuhp_exit: cpu: 0004 state: 142 step: 142 ret: 0 cpuhp/4-31 [004] 95.545: cpuhp_multi_enter: cpu: 0004 target: 169 step: 143 (virtnet_cpu_online) cpuhp/4-31 [004] 95.546: cpuhp_exit: cpu: 0004 state: 143 step: 143 ret: 0 cpuhp/4-31 [004] 95.547: cpuhp_enter: cpu: 0004 target: 169 step: 144 (mce_cpu_online) cpuhp/4-31 [004] 95.548: cpuhp_exit: cpu: 0004 state: 144 step: 144 ret: 0 cpuhp/4-31 [004] 95.549: cpuhp_enter: cpu: 0004 target: 169 step: 145 (console_cpu_notify) cpuhp/4-31 [004] 95.550: cpuhp_exit: cpu: 0004 state: 145 step: 145 ret: 0 cpuhp/4-31 [004] 95.551: cpuhp_enter: cpu: 0004 target: 169 step: 168 (sched_cpu_activate) cpuhp/4-31 [004] 95.552: cpuhp_exit: cpu: 0004 state: 168 step: 168 ret: 0 bash-394 [005] 95.553: cpuhp_exit: cpu: 0004 state: 169 step: 140 ret: 0}hj+sbah}(h]h ]h"]h$]h&]jjuh1jhhhMhjThhubh)}(hAs it an be seen, CPU4 went down until timestamp 22.996 and then back up until 95.552. All invoked callbacks including their return codes are visible in the trace.h]hAs it an be seen, CPU4 went down until timestamp 22.996 and then back up until 95.552. All invoked callbacks including their return codes are visible in the trace.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjThhubeh}(h]testing-of-hotplug-statesah ]h"]testing of hotplug statesah$]h&]uh1hhhhhhhhMoubh)}(hhh](h)}(hArchitecture's requirementsh]hArchitecture’s requirements}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhhhhhMubh)}(h8The following functions and configurations are required:h]h8The following functions and configurations are required:}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjOhhubj)}(hhh](j)}(hA``CONFIG_HOTPLUG_CPU`` This entry needs to be enabled in Kconfig h](j)}(h``CONFIG_HOTPLUG_CPU``h]j)}(hjwh]hCONFIG_HOTPLUG_CPU}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhhhMhjqubj)}(hhh]h)}(h)This entry needs to be enabled in Kconfigh]h)This entry needs to be enabled in Kconfig}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhhhMhjnubj)}(h0``__cpu_up()`` Arch interface to bring up a CPU h](j)}(h``__cpu_up()``h]j)}(hjh]h __cpu_up()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(h Arch interface to bring up a CPUh]h Arch interface to bring up a CPU}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjnhhubj)}(h``__cpu_disable()`` Arch interface to shutdown a CPU, no more interrupts can be handled by the kernel after the routine returns. This includes the shutdown of the timer. h](j)}(h``__cpu_disable()``h]j)}(hjh]h__cpu_disable()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(hArch interface to shutdown a CPU, no more interrupts can be handled by the kernel after the routine returns. This includes the shutdown of the timer.h]hArch interface to shutdown a CPU, no more interrupts can be handled by the kernel after the routine returns. This includes the shutdown of the timer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjnhhubj)}(hXm``__cpu_die()`` This actually supposed to ensure death of the CPU. Actually look at some example code in other arch that implement CPU hotplug. The processor is taken down from the ``idle()`` loop for that specific architecture. ``__cpu_die()`` typically waits for some per_cpu state to be set, to ensure the processor dead routine is called to be sure positively. h](j)}(h``__cpu_die()``h]j)}(hjh]h __cpu_die()}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhhhMhjubj)}(hhh]h)}(hX\This actually supposed to ensure death of the CPU. Actually look at some example code in other arch that implement CPU hotplug. The processor is taken down from the ``idle()`` loop for that specific architecture. ``__cpu_die()`` typically waits for some per_cpu state to be set, to ensure the processor dead routine is called to be sure positively.h](hThis actually supposed to ensure death of the CPU. Actually look at some example code in other arch that implement CPU hotplug. The processor is taken down from the }(hj7hhhNhNubj)}(h ``idle()``h]hidle()}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh& loop for that specific architecture. }(hj7hhhNhNubj)}(h``__cpu_die()``h]h __cpu_die()}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubhx typically waits for some per_cpu state to be set, to ensure the processor dead routine is called to be sure positively.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhjnhhubeh}(h]h ]h"]h$]h&]uh1jhjOhhhhhNubeh}(h]architecture-s-requirementsah ]h"]architecture's requirementsah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hUser Space Notificationh]hUser Space Notification}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hRAfter CPU successfully onlined or offline udev events are sent. A udev rule like::h]hQAfter CPU successfully onlined or offline udev events are sent. A udev rule like:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj)}(hhSUBSYSTEM=="cpu", DRIVERS=="processor", DEVPATH=="/devices/system/cpu/*", RUN+="the_hotplug_receiver.sh"h]hhSUBSYSTEM=="cpu", DRIVERS=="processor", DEVPATH=="/devices/system/cpu/*", RUN+="the_hotplug_receiver.sh"}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhMhjhhubh)}(h(will receive all events. A script like::h]h'will receive all events. A script like:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj)}(h#!/bin/sh if [ "${ACTION}" = "offline" ] then echo "CPU ${DEVPATH##*/} offline" elif [ "${ACTION}" = "online" ] then echo "CPU ${DEVPATH##*/} online" fih]h#!/bin/sh if [ "${ACTION}" = "offline" ] then echo "CPU ${DEVPATH##*/} offline" elif [ "${ACTION}" = "online" ] then echo "CPU ${DEVPATH##*/} online" fi}hjsbah}(h]h ]h"]h$]h&]jjuh1jhhhMhjhhubh)}(hcan process the event further.h]hcan process the event further.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hX,When changes to the CPUs in the system occur, the sysfs file /sys/devices/system/cpu/crash_hotplug contains '1' if the kernel updates the kdump capture kernel list of CPUs itself (via elfcorehdr and other relevant kexec segment), or '0' if userspace must update the kdump capture kernel list of CPUs.h]hX4When changes to the CPUs in the system occur, the sysfs file /sys/devices/system/cpu/crash_hotplug contains ‘1’ if the kernel updates the kdump capture kernel list of CPUs itself (via elfcorehdr and other relevant kexec segment), or ‘0’ if userspace must update the kdump capture kernel list of CPUs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hOThe availability depends on the CONFIG_HOTPLUG_CPU kernel configuration option.h]hOThe availability depends on the CONFIG_HOTPLUG_CPU kernel configuration option.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hTo skip userspace processing of CPU hot un/plug events for kdump (i.e. the unload-then-reload to obtain a current list of CPUs), this sysfs file can be used in a udev rule as follows:h]hTo skip userspace processing of CPU hot un/plug events for kdump (i.e. the unload-then-reload to obtain a current list of CPUs), this sysfs file can be used in a udev rule as follows:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj )}(hESUBSYSTEM=="cpu", ATTRS{crash_hotplug}=="1", GOTO="kdump_reload_end" h]h)}(hDSUBSYSTEM=="cpu", ATTRS{crash_hotplug}=="1", GOTO="kdump_reload_end"h]hPSUBSYSTEM==”cpu”, ATTRS{crash_hotplug}==”1”, GOTO=”kdump_reload_end”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hhhMhjhhubh)}(hFor a CPU hot un/plug event, if the architecture supports kernel updates of the elfcorehdr (which contains the list of CPUs) and other relevant kexec segments, then the rule skips the unload-then-reload of the kdump capture kernel.h]hFor a CPU hot un/plug event, if the architecture supports kernel updates of the elfcorehdr (which contains the list of CPUs) and other relevant kexec segments, then the rule skips the unload-then-reload of the kdump capture kernel.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubeh}(h]user-space-notificationah ]h"]user space notificationah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(h&Kernel Inline Documentations Referenceh]h&Kernel Inline Documentations Reference}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hhhhhMubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlecpuhp_setup_state (C function)c.cpuhp_setup_statehNtauh1jChj2hhhNhNubhdesc)}(hhh](hdesc_signature)}(hint cpuhp_setup_state (enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu), int (*teardown)(unsigned int cpu))h]hdesc_signature_line)}(hint cpuhp_setup_state(enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu), int (*teardown)(unsigned int cpu))h](hdesc_sig_keyword_type)}(hinth]hint}(hjghhhNhNubah}(h]h ]ktah"]h$]h&]uh1jehjahhh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMubhdesc_sig_space)}(h h]h }(hjyhhhNhNubah}(h]h ]wah"]h$]h&]uh1jwhjahhhjvhMubh desc_name)}(hcpuhp_setup_stateh]h desc_sig_name)}(hcpuhp_setup_stateh]hcpuhp_setup_state}(hjhhhNhNubah}(h]h ]nah"]h$]h&]uh1jhjubah}(h]h ](sig-namedescnameeh"]h$]h&]jjuh1jhjahhhjvhMubhdesc_parameterlist)}(ho(enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu), int (*teardown)(unsigned int cpu))h](hdesc_parameter)}(henum cpuhp_state stateh](hdesc_sig_keyword)}(henumh]henum}(hjhhhNhNubah}(h]h ]kah"]h$]h&]uh1jhjubjx)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjubh)}(hhh]j)}(h cpuhp_stateh]h cpuhp_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomaincreftype identifier reftargetjmodnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]j ASTIdentifier)}jjsbc.cpuhp_setup_stateasbuh1hhjubjx)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjubj)}(hstateh]hstate}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hconsth]hconst}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjx)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj!ubjf)}(hcharh]hchar}(hjAhhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj!ubjx)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj!ubhdesc_sig_punctuation)}(hjh]h*}(hj_hhhNhNubah}(h]h ]pah"]h$]h&]uh1j]hj!ubj)}(hnameh]hname}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int (*startup)(unsigned int cpu)h](jf)}(hinth]hint}(hjhhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehjubjx)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjubj^)}(h(h]h(}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjubj^)}(hjh]h*}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjubj)}(hstartuph]hstartup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj^)}(h)h]h)}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjubj^)}(hjh]h(}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjubjf)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehjubjx)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjubjf)}(hinth]hint}(hjhhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehjubjx)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjubj)}(hcpuh]hcpu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj^)}(hjh]h)}(hj,hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h!int (*teardown)(unsigned int cpu)h](jf)}(hinth]hint}(hjDhhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj@ubjx)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj@ubj^)}(hjh]h(}(hj`hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj@ubj^)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj@ubj)}(hteardownh]hteardown}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj^)}(hjh]h)}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj@ubj^)}(hjh]h(}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj@ubjf)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj@ubjx)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj@ubjf)}(hinth]hint}(hjhhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj@ubjx)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj@ubj)}(hcpuh]hcpu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj^)}(hjh]h)}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjahhhjvhMubeh}(h]h ]h"]h$]h&]jj add_permalinkuh1j_sphinx_line_type declaratorhj[hhhjvhMubah}(h]jRah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1jYhjvhMhjVhhubh desc_content)}(hhh]h)}(hCSetup hotplug state callbacks with calling the **startup** callbackh](h/Setup hotplug state callbacks with calling the }(hjhhhNhNubhstrong)}(h **startup**h]hstartup}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubh callback}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjvhMubeh}(h]h ](jfunctioneh"]h$]h&]domainjobjtypejGdesctypejGnoindex noindexentrynocontentsentryuh1jThhhj2hNhNubh container)}(hX**Parameters** ``enum cpuhp_state state`` The state for which the calls are installed ``const char *name`` Name of the callback (will be used in debug output) ``int (*startup)(unsigned int cpu)`` startup callback function or NULL if not required ``int (*teardown)(unsigned int cpu)`` teardown callback function or NULL if not required **Description** Installs the callback functions and invokes the **startup** callback on the online cpus which have already reached the **state**.h](h)}(h**Parameters**h]j$)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjWubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM hjSubj)}(hhh](j)}(hG``enum cpuhp_state state`` The state for which the calls are installed h](j)}(h``enum cpuhp_state state``h]j)}(hjxh]henum cpuhp_state state}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhjrubj)}(hhh]h)}(h+The state for which the calls are installedh]h+The state for which the calls are installed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjoubj)}(hI``const char *name`` Name of the callback (will be used in debug output) h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM hjubj)}(hhh]h)}(h3Name of the callback (will be used in debug output)h]h3Name of the callback (will be used in debug output)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjoubj)}(hW``int (*startup)(unsigned int cpu)`` startup callback function or NULL if not required h](j)}(h$``int (*startup)(unsigned int cpu)``h]j)}(hjh]h int (*startup)(unsigned int cpu)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM hjubj)}(hhh]h)}(h1startup callback function or NULL if not requiredh]h1startup callback function or NULL if not required}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjoubj)}(hY``int (*teardown)(unsigned int cpu)`` teardown callback function or NULL if not required h](j)}(h%``int (*teardown)(unsigned int cpu)``h]j)}(hj#h]h!int (*teardown)(unsigned int cpu)}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM hjubj)}(hhh]h)}(h2teardown callback function or NULL if not requiredh]h2teardown callback function or NULL if not required}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hM hj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hM hjoubeh}(h]h ]h"]h$]h&]uh1jhjSubh)}(h**Description**h]j$)}(hj^h]h Description}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj\ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM hjSubh)}(hInstalls the callback functions and invokes the **startup** callback on the online cpus which have already reached the **state**.h](h0Installs the callback functions and invokes the }(hjthhhNhNubj$)}(h **startup**h]hstartup}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjtubh< callback on the online cpus which have already reached the }(hjthhhNhNubj$)}(h **state**h]hstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjtubh.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM hjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jQhj2hhhNhNubjD)}(hhh]h}(h]h ]h"]h$]h&]entries](jP)cpuhp_setup_state_cpuslocked (C function)c.cpuhp_setup_state_cpuslockedhNtauh1jChj2hhhNhNubjU)}(hhh](jZ)}(hint cpuhp_setup_state_cpuslocked (enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu), int (*teardown)(unsigned int cpu))h]j`)}(hint cpuhp_setup_state_cpuslocked(enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu), int (*teardown)(unsigned int cpu))h](jf)}(hinth]hint}(hjhhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehjhhh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM$ubjx)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjhhhjhM$ubj)}(hcpuhp_setup_state_cpuslockedh]j)}(hcpuhp_setup_state_cpuslockedh]hcpuhp_setup_state_cpuslocked}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhM$ubj)}(ho(enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu), int (*teardown)(unsigned int cpu))h](j)}(henum cpuhp_state stateh](j)}(hjh]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjx)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjubh)}(hhh]j)}(h cpuhp_stateh]h cpuhp_state}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj$modnameN classnameNjj)}j]j)}jjsbc.cpuhp_setup_state_cpuslockedasbuh1hhjubjx)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjubj)}(hstateh]hstate}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hj'h]hconst}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjx)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjeubjf)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehjeubjx)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjeubj^)}(hjh]h*}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjeubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int (*startup)(unsigned int cpu)h](jf)}(hinth]hint}(hjhhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehjubjx)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjubj^)}(hjh]h(}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjubj^)}(hjh]h*}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjubj)}(hstartuph]hstartup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj^)}(hjh]h)}(hj hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjubj^)}(hjh]h(}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjubjf)}(hunsignedh]hunsigned}(hj$hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehjubjx)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjubjf)}(hinth]hint}(hj@hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehjubjx)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjubj)}(hcpuh]hcpu}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj^)}(hjh]h)}(hjjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h!int (*teardown)(unsigned int cpu)h](jf)}(hinth]hint}(hjhhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj~ubjx)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj~ubj^)}(hjh]h(}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj~ubj^)}(hjh]h*}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj~ubj)}(hteardownh]hteardown}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj^)}(hjh]h)}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj~ubj^)}(hjh]h(}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj~ubjf)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj~ubjx)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj~ubjf)}(hinth]hint}(hjhhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj~ubjx)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj~ubj)}(hcpuh]hcpu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj^)}(hjh]h)}(hj&hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM$ubeh}(h]h ]h"]h$]h&]jjjuh1j_j j hjhhhjhM$ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jYhjhM$hjhhubj)}(hhh]h)}(hcSetup hotplug state callbacks with calling **startup** callback from a cpus_read_lock() held regionh](h+Setup hotplug state callbacks with calling }(hjOhhhNhNubj$)}(h **startup**h]hstartup}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjOubh- callback from a cpus_read_lock() held region}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhjLhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM$ubeh}(h]h ](jfunctioneh"]h$]h&]jKjjLjyjMjyjNjOjPuh1jThhhj2hNhNubjR)}(hX**Parameters** ``enum cpuhp_state state`` The state for which the calls are installed ``const char *name`` Name of the callback (will be used in debug output) ``int (*startup)(unsigned int cpu)`` startup callback function or NULL if not required ``int (*teardown)(unsigned int cpu)`` teardown callback function or NULL if not required **Description** Same as cpuhp_setup_state() except that it must be invoked from within a cpus_read_lock() held region.h](h)}(h**Parameters**h]j$)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj}ubj)}(hhh](j)}(hG``enum cpuhp_state state`` The state for which the calls are installed h](j)}(h``enum cpuhp_state state``h]j)}(hjh]henum cpuhp_state state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhjubj)}(hhh]h)}(h+The state for which the calls are installedh]h+The state for which the calls are installed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hI``const char *name`` Name of the callback (will be used in debug output) h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhjubj)}(hhh]h)}(h3Name of the callback (will be used in debug output)h]h3Name of the callback (will be used in debug output)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hW``int (*startup)(unsigned int cpu)`` startup callback function or NULL if not required h](j)}(h$``int (*startup)(unsigned int cpu)``h]j)}(hjh]h int (*startup)(unsigned int cpu)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhjubj)}(hhh]h)}(h1startup callback function or NULL if not requiredh]h1startup callback function or NULL if not required}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhjubj)}(hY``int (*teardown)(unsigned int cpu)`` teardown callback function or NULL if not required h](j)}(h%``int (*teardown)(unsigned int cpu)``h]j)}(hjMh]h!int (*teardown)(unsigned int cpu)}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhjGubj)}(hhh]h)}(h2teardown callback function or NULL if not requiredh]h2teardown callback function or NULL if not required}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjubeh}(h]h ]h"]h$]h&]uh1jhj}ubh)}(h**Description**h]j$)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM!hj}ubh)}(hfSame as cpuhp_setup_state() except that it must be invoked from within a cpus_read_lock() held region.h]hfSame as cpuhp_setup_state() except that it must be invoked from within a cpus_read_lock() held region.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM!hj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jQhj2hhhNhNubjD)}(hhh]h}(h]h ]h"]h$]h&]entries](jP&cpuhp_setup_state_nocalls (C function)c.cpuhp_setup_state_nocallshNtauh1jChj2hhhNhNubjU)}(hhh](jZ)}(hint cpuhp_setup_state_nocalls (enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu), int (*teardown)(unsigned int cpu))h]j`)}(hint cpuhp_setup_state_nocalls(enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu), int (*teardown)(unsigned int cpu))h](jf)}(hinth]hint}(hjhhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehjhhh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM8ubjx)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjhhhjhM8ubj)}(hcpuhp_setup_state_nocallsh]j)}(hcpuhp_setup_state_nocallsh]hcpuhp_setup_state_nocalls}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhM8ubj)}(ho(enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu), int (*teardown)(unsigned int cpu))h](j)}(henum cpuhp_state stateh](j)}(hjh]henum}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjx)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjubh)}(hhh]j)}(h cpuhp_stateh]h cpuhp_state}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj*modnameN classnameNjj)}j]j)}jjsbc.cpuhp_setup_state_nocallsasbuh1hhjubjx)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjubj)}(hstateh]hstate}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hj'h]hconst}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjx)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjkubjf)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehjkubjx)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjkubj^)}(hjh]h*}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjkubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int (*startup)(unsigned int cpu)h](jf)}(hinth]hint}(hjhhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehjubjx)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjubj^)}(hjh]h(}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjubj^)}(hjh]h*}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjubj)}(hstartuph]hstartup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj^)}(hjh]h)}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjubj^)}(hjh]h(}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjubjf)}(hunsignedh]hunsigned}(hj*hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehjubjx)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjubjf)}(hinth]hint}(hjFhhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehjubjx)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjubj)}(hcpuh]hcpu}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj^)}(hjh]h)}(hjphhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h!int (*teardown)(unsigned int cpu)h](jf)}(hinth]hint}(hjhhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehjubjx)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjubj^)}(hjh]h(}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjubj^)}(hjh]h*}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjubj)}(hteardownh]hteardown}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj^)}(hjh]h)}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjubj^)}(hjh]h(}(hjhhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjubjf)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehjubjx)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjubjf)}(hinth]hint}(hjhhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehjubjx)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjubj)}(hcpuh]hcpu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj^)}(hjh]h)}(hj,hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM8ubeh}(h]h ]h"]h$]h&]jjjuh1j_j j hjhhhjhM8ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jYhjhM8hjhhubj)}(hhh]h)}(hFSetup hotplug state callbacks without calling the **startup** callbackh](h2Setup hotplug state callbacks without calling the }(hjUhhhNhNubj$)}(h **startup**h]hstartup}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjUubh callback}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM.hjRhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM8ubeh}(h]h ](jfunctioneh"]h$]h&]jKjjLjjMjjNjOjPuh1jThhhj2hNhNubjR)}(hX**Parameters** ``enum cpuhp_state state`` The state for which the calls are installed ``const char *name`` Name of the callback. ``int (*startup)(unsigned int cpu)`` startup callback function or NULL if not required ``int (*teardown)(unsigned int cpu)`` teardown callback function or NULL if not required **Description** Same as cpuhp_setup_state() except that the **startup** callback is not invoked during installation. NOP if SMP=n or HOTPLUG_CPU=n.h](h)}(h**Parameters**h]j$)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM2hjubj)}(hhh](j)}(hG``enum cpuhp_state state`` The state for which the calls are installed h](j)}(h``enum cpuhp_state state``h]j)}(hjh]henum cpuhp_state state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM0hjubj)}(hhh]h)}(h+The state for which the calls are installedh]h+The state for which the calls are installed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjubj)}(h+``const char *name`` Name of the callback. h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM1hjubj)}(hhh]h)}(hName of the callback.h]hName of the callback.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjubj)}(hW``int (*startup)(unsigned int cpu)`` startup callback function or NULL if not required h](j)}(h$``int (*startup)(unsigned int cpu)``h]j)}(hj h]h int (*startup)(unsigned int cpu)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM2hj ubj)}(hhh]h)}(h1startup callback function or NULL if not requiredh]h1startup callback function or NULL if not required}(hj3 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ hM2hj0 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj/ hM2hjubj)}(hY``int (*teardown)(unsigned int cpu)`` teardown callback function or NULL if not required h](j)}(h%``int (*teardown)(unsigned int cpu)``h]j)}(hjS h]h!int (*teardown)(unsigned int cpu)}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM3hjM ubj)}(hhh]h)}(h2teardown callback function or NULL if not requiredh]h2teardown callback function or NULL if not required}(hjl hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh hM3hji ubah}(h]h ]h"]h$]h&]uh1jhjM ubeh}(h]h ]h"]h$]h&]uh1jhjh hM3hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j$)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM5hjubh)}(hSame as cpuhp_setup_state() except that the **startup** callback is not invoked during installation. NOP if SMP=n or HOTPLUG_CPU=n.h](h,Same as cpuhp_setup_state() except that the }(hj hhhNhNubj$)}(h **startup**h]hstartup}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubhL callback is not invoked during installation. NOP if SMP=n or HOTPLUG_CPU=n.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM5hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jQhj2hhhNhNubjD)}(hhh]h}(h]h ]h"]h$]h&]entries](jP1cpuhp_setup_state_nocalls_cpuslocked (C function)&c.cpuhp_setup_state_nocalls_cpuslockedhNtauh1jChj2hhhNhNubjU)}(hhh](jZ)}(hint cpuhp_setup_state_nocalls_cpuslocked (enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu), int (*teardown)(unsigned int cpu))h]j`)}(hint cpuhp_setup_state_nocalls_cpuslocked(enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu), int (*teardown)(unsigned int cpu))h](jf)}(hinth]hint}(hj hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj hhh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMNubjx)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj hhhj hMNubj)}(h$cpuhp_setup_state_nocalls_cpuslockedh]j)}(h$cpuhp_setup_state_nocalls_cpuslockedh]h$cpuhp_setup_state_nocalls_cpuslocked}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj hhhj hMNubj)}(ho(enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu), int (*teardown)(unsigned int cpu))h](j)}(henum cpuhp_state stateh](j)}(hjh]henum}(hj"!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjx)}(h h]h }(hj/!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj!ubh)}(hhh]j)}(h cpuhp_stateh]h cpuhp_state}(hj@!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=!ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjB!modnameN classnameNjj)}j]j)}jj!sb&c.cpuhp_setup_state_nocalls_cpuslockedasbuh1hhj!ubjx)}(h h]h }(hj`!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj!ubj)}(hstateh]hstate}(hjn!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubj)}(hconst char *nameh](j)}(hj'h]hconst}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjx)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj!ubjf)}(hcharh]hchar}(hj!hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj!ubjx)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj!ubj^)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj!ubj)}(hnameh]hname}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubj)}(h int (*startup)(unsigned int cpu)h](jf)}(hinth]hint}(hj!hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj!ubjx)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj!ubj^)}(hjh]h(}(hj"hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj!ubj^)}(hjh]h*}(hj "hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj!ubj)}(hstartuph]hstartup}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj^)}(hjh]h)}(hj("hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj!ubj^)}(hjh]h(}(hj5"hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj!ubjf)}(hunsignedh]hunsigned}(hjB"hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj!ubjx)}(h h]h }(hjP"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj!ubjf)}(hinth]hint}(hj^"hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj!ubjx)}(h h]h }(hjl"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj!ubj)}(hcpuh]hcpu}(hjz"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj^)}(hjh]h)}(hj"hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubj)}(h!int (*teardown)(unsigned int cpu)h](jf)}(hinth]hint}(hj"hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj"ubjx)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj"ubj^)}(hjh]h(}(hj"hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj"ubj^)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj"ubj)}(hteardownh]hteardown}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj^)}(hjh]h)}(hj"hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj"ubj^)}(hjh]h(}(hj"hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj"ubjf)}(hunsignedh]hunsigned}(hj"hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj"ubjx)}(h h]h }(hj #hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj"ubjf)}(hinth]hint}(hj#hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj"ubjx)}(h h]h }(hj(#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj"ubj)}(hcpuh]hcpu}(hj6#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj^)}(hjh]h)}(hjD#hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hMNubeh}(h]h ]h"]h$]h&]jjjuh1j_j j hj hhhj hMNubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jYhj hMNhj hhubj)}(hhh]h)}(huSetup hotplug state callbacks without invoking the **startup** callback from a cpus_read_lock() held region callbacksh](h3Setup hotplug state callbacks without invoking the }(hjm#hhhNhNubj$)}(h **startup**h]hstartup}(hju#hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjm#ubh7 callback from a cpus_read_lock() held region callbacks}(hjm#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMBhjj#hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMNubeh}(h]h ](jfunctioneh"]h$]h&]jKjjLj#jMj#jNjOjPuh1jThhhj2hNhNubjR)}(hX**Parameters** ``enum cpuhp_state state`` The state for which the calls are installed ``const char *name`` Name of the callback. ``int (*startup)(unsigned int cpu)`` startup callback function or NULL if not required ``int (*teardown)(unsigned int cpu)`` teardown callback function or NULL if not required **Description** Same as cpuhp_setup_state_nocalls() except that it must be invoked from within a cpus_read_lock() held region.h](h)}(h**Parameters**h]j$)}(hj#h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj#ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMFhj#ubj)}(hhh](j)}(hG``enum cpuhp_state state`` The state for which the calls are installed h](j)}(h``enum cpuhp_state state``h]j)}(hj#h]henum cpuhp_state state}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMFhj#ubj)}(hhh]h)}(h+The state for which the calls are installedh]h+The state for which the calls are installed}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMFhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMFhj#ubj)}(h+``const char *name`` Name of the callback. h](j)}(h``const char *name``h]j)}(hj#h]hconst char *name}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMGhj#ubj)}(hhh]h)}(hName of the callback.h]hName of the callback.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMGhj$ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj$hMGhj#ubj)}(hW``int (*startup)(unsigned int cpu)`` startup callback function or NULL if not required h](j)}(h$``int (*startup)(unsigned int cpu)``h]j)}(hj2$h]h int (*startup)(unsigned int cpu)}(hj4$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0$ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMHhj,$ubj)}(hhh]h)}(h1startup callback function or NULL if not requiredh]h1startup callback function or NULL if not required}(hjK$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjG$hMHhjH$ubah}(h]h ]h"]h$]h&]uh1jhj,$ubeh}(h]h ]h"]h$]h&]uh1jhjG$hMHhj#ubj)}(hY``int (*teardown)(unsigned int cpu)`` teardown callback function or NULL if not required h](j)}(h%``int (*teardown)(unsigned int cpu)``h]j)}(hjk$h]h!int (*teardown)(unsigned int cpu)}(hjm$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji$ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMIhje$ubj)}(hhh]h)}(h2teardown callback function or NULL if not requiredh]h2teardown callback function or NULL if not required}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMIhj$ubah}(h]h ]h"]h$]h&]uh1jhje$ubeh}(h]h ]h"]h$]h&]uh1jhj$hMIhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#ubh)}(h**Description**h]j$)}(hj$h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj$ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMKhj#ubh)}(hnSame as cpuhp_setup_state_nocalls() except that it must be invoked from within a cpus_read_lock() held region.h]hnSame as cpuhp_setup_state_nocalls() except that it must be invoked from within a cpus_read_lock() held region.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMKhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jQhj2hhhNhNubjD)}(hhh]h}(h]h ]h"]h$]h&]entries](jP$cpuhp_setup_state_multi (C function)c.cpuhp_setup_state_multihNtauh1jChj2hhhNhNubjU)}(hhh](jZ)}(hint cpuhp_setup_state_multi (enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu, struct hlist_node *node), int (*teardown)(unsigned int cpu, struct hlist_node *node))h]j`)}(hint cpuhp_setup_state_multi(enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu, struct hlist_node *node), int (*teardown)(unsigned int cpu, struct hlist_node *node))h](jf)}(hinth]hint}(hj$hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj$hhh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMcubjx)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj$hhhj$hMcubj)}(hcpuhp_setup_state_multih]j)}(hcpuhp_setup_state_multih]hcpuhp_setup_state_multi}(hj %hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj$hhhj$hMcubj)}(h(enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu, struct hlist_node *node), int (*teardown)(unsigned int cpu, struct hlist_node *node))h](j)}(henum cpuhp_state stateh](j)}(hjh]henum}(hj(%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$%ubjx)}(h h]h }(hj5%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj$%ubh)}(hhh]j)}(h cpuhp_stateh]h cpuhp_state}(hjF%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC%ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjH%modnameN classnameNjj)}j]j)}jj%sbc.cpuhp_setup_state_multiasbuh1hhj$%ubjx)}(h h]h }(hjf%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj$%ubj)}(hstateh]hstate}(hjt%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj %ubj)}(hconst char *nameh](j)}(hj'h]hconst}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjx)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj%ubjf)}(hcharh]hchar}(hj%hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj%ubjx)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj%ubj^)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj%ubj)}(hnameh]hname}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj %ubj)}(h9int (*startup)(unsigned int cpu, struct hlist_node *node)h](jf)}(hinth]hint}(hj%hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj%ubjx)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj%ubj^)}(hjh]h(}(hj&hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj%ubj^)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj%ubj)}(hstartuph]hstartup}(hj &hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj^)}(hjh]h)}(hj.&hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj%ubj^)}(hjh]h(}(hj;&hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj%ubjf)}(hunsignedh]hunsigned}(hjH&hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj%ubjx)}(h h]h }(hjV&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj%ubjf)}(hinth]hint}(hjd&hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj%ubjx)}(h h]h }(hjr&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj%ubj)}(hcpuh]hcpu}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj^)}(h,h]h,}(hj&hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj%ubjx)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj%ubj)}(hstructh]hstruct}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjx)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj%ubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj&modnameN classnameNjj)}j]jb%c.cpuhp_setup_state_multiasbuh1hhj%ubjx)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj%ubj^)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj%ubj)}(hnodeh]hnode}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj^)}(hjh]h)}(hj'hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj %ubj)}(h:int (*teardown)(unsigned int cpu, struct hlist_node *node)h](jf)}(hinth]hint}(hj('hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj$'ubjx)}(h h]h }(hj6'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj$'ubj^)}(hjh]h(}(hjD'hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj$'ubj^)}(hjh]h*}(hjQ'hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj$'ubj)}(hteardownh]hteardown}(hj^'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$'ubj^)}(hjh]h)}(hjl'hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj$'ubj^)}(hjh]h(}(hjy'hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj$'ubjf)}(hunsignedh]hunsigned}(hj'hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj$'ubjx)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj$'ubjf)}(hinth]hint}(hj'hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj$'ubjx)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj$'ubj)}(hcpuh]hcpu}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$'ubj^)}(hj&h]h,}(hj'hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj$'ubjx)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj$'ubj)}(hj&h]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$'ubjx)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj$'ubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj(modnameN classnameNjj)}j]jb%c.cpuhp_setup_state_multiasbuh1hhj$'ubjx)}(h h]h }(hj#(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj$'ubj^)}(hjh]h*}(hj1(hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj$'ubj)}(hnodeh]hnode}(hj>(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$'ubj^)}(hjh]h)}(hjL(hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj$'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj %ubeh}(h]h ]h"]h$]h&]jjuh1jhj$hhhj$hMcubeh}(h]h ]h"]h$]h&]jjjuh1j_j j hj$hhhj$hMcubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1jYhj$hMchj$hhubj)}(hhh]h)}(hAdd callbacks for multi stateh]hAdd callbacks for multi state}(hju(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMXhjr(hhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj$hMcubeh}(h]h ](jfunctioneh"]h$]h&]jKjjLj(jMj(jNjOjPuh1jThhhj2hNhNubjR)}(hX**Parameters** ``enum cpuhp_state state`` The state for which the calls are installed ``const char *name`` Name of the callback. ``int (*startup)(unsigned int cpu, struct hlist_node *node)`` startup callback function or NULL if not required ``int (*teardown)(unsigned int cpu, struct hlist_node *node)`` teardown callback function or NULL if not required **Description** Sets the internal multi_instance flag and prepares a state to work as a multi instance callback. No callbacks are invoked at this point. The callbacks are invoked once an instance for this state are registered via cpuhp_state_add_instance() or cpuhp_state_add_instance_nocalls()h](h)}(h**Parameters**h]j$)}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj(ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM\hj(ubj)}(hhh](j)}(hG``enum cpuhp_state state`` The state for which the calls are installed h](j)}(h``enum cpuhp_state state``h]j)}(hj(h]henum cpuhp_state state}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMYhj(ubj)}(hhh]h)}(h+The state for which the calls are installedh]h+The state for which the calls are installed}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hMYhj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hMYhj(ubj)}(h+``const char *name`` Name of the callback. h](j)}(h``const char *name``h]j)}(hj(h]hconst char *name}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMZhj(ubj)}(hhh]h)}(hName of the callback.h]hName of the callback.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMZhj)ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj)hMZhj(ubj)}(hp``int (*startup)(unsigned int cpu, struct hlist_node *node)`` startup callback function or NULL if not required h](j)}(h=``int (*startup)(unsigned int cpu, struct hlist_node *node)``h]j)}(hj()h]h9int (*startup)(unsigned int cpu, struct hlist_node *node)}(hj*)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&)ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM[hj")ubj)}(hhh]h)}(h1startup callback function or NULL if not requiredh]h1startup callback function or NULL if not required}(hjA)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=)hM[hj>)ubah}(h]h ]h"]h$]h&]uh1jhj")ubeh}(h]h ]h"]h$]h&]uh1jhj=)hM[hj(ubj)}(hr``int (*teardown)(unsigned int cpu, struct hlist_node *node)`` teardown callback function or NULL if not required h](j)}(h>``int (*teardown)(unsigned int cpu, struct hlist_node *node)``h]j)}(hja)h]h:int (*teardown)(unsigned int cpu, struct hlist_node *node)}(hjc)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_)ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM\hj[)ubj)}(hhh]h)}(h2teardown callback function or NULL if not requiredh]h2teardown callback function or NULL if not required}(hjz)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjv)hM\hjw)ubah}(h]h ]h"]h$]h&]uh1jhj[)ubeh}(h]h ]h"]h$]h&]uh1jhjv)hM\hj(ubeh}(h]h ]h"]h$]h&]uh1jhj(ubh)}(h**Description**h]j$)}(hj)h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj)ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM^hj(ubh)}(hXSets the internal multi_instance flag and prepares a state to work as a multi instance callback. No callbacks are invoked at this point. The callbacks are invoked once an instance for this state are registered via cpuhp_state_add_instance() or cpuhp_state_add_instance_nocalls()h]hXSets the internal multi_instance flag and prepares a state to work as a multi instance callback. No callbacks are invoked at this point. The callbacks are invoked once an instance for this state are registered via cpuhp_state_add_instance() or cpuhp_state_add_instance_nocalls()}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhM^hj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jQhj2hhhNhNubjD)}(hhh]h}(h]h ]h"]h$]h&]entries](jP%cpuhp_state_add_instance (C function)c.cpuhp_state_add_instancehNtauh1jChj2hhhNhNubjU)}(hhh](jZ)}(hNint cpuhp_state_add_instance (enum cpuhp_state state, struct hlist_node *node)h]j`)}(hMint cpuhp_state_add_instance(enum cpuhp_state state, struct hlist_node *node)h](jf)}(hinth]hint}(hj)hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj)hhh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMubjx)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj)hhhj)hMubj)}(hcpuhp_state_add_instanceh]j)}(hcpuhp_state_add_instanceh]hcpuhp_state_add_instance}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj)hhhj)hMubj)}(h1(enum cpuhp_state state, struct hlist_node *node)h](j)}(henum cpuhp_state stateh](j)}(hjh]henum}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjx)}(h h]h }(hj+*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj*ubh)}(hhh]j)}(h cpuhp_stateh]h cpuhp_state}(hj<*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9*ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj>*modnameN classnameNjj)}j]j)}jj*sbc.cpuhp_state_add_instanceasbuh1hhj*ubjx)}(h h]h }(hj\*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj*ubj)}(hstateh]hstate}(hjj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hstruct hlist_node *nodeh](j)}(hj&h]hstruct}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjx)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj*ubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj*modnameN classnameNjj)}j]jX*c.cpuhp_state_add_instanceasbuh1hhj*ubjx)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj*ubj^)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj*ubj)}(hnodeh]hnode}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubeh}(h]h ]h"]h$]h&]jjuh1jhj)hhhj)hMubeh}(h]h ]h"]h$]h&]jjjuh1j_j j hj)hhhj)hMubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1jYhj)hMhj)hhubj)}(hhh]h)}(h8Add an instance for a state and invoke startup callback.h]h8Add an instance for a state and invoke startup callback.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMuhj+hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhj)hMubeh}(h]h ](jfunctioneh"]h$]h&]jKjjLj+jMj+jNjOjPuh1jThhhj2hNhNubjR)}(hX**Parameters** ``enum cpuhp_state state`` The state for which the instance is installed ``struct hlist_node *node`` The node for this individual state. **Description** Installs the instance for the **state** and invokes the registered startup callback on the online cpus which have already reached the **state**. The **state** must have been earlier marked as multi-instance by cpuhp_setup_state_multi().h](h)}(h**Parameters**h]j$)}(hj&+h]h Parameters}(hj(+hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj$+ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMyhj +ubj)}(hhh](j)}(hI``enum cpuhp_state state`` The state for which the instance is installed h](j)}(h``enum cpuhp_state state``h]j)}(hjE+h]henum cpuhp_state state}(hjG+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC+ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMwhj?+ubj)}(hhh]h)}(h-The state for which the instance is installedh]h-The state for which the instance is installed}(hj^+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZ+hMwhj[+ubah}(h]h ]h"]h$]h&]uh1jhj?+ubeh}(h]h ]h"]h$]h&]uh1jhjZ+hMwhj<+ubj)}(h@``struct hlist_node *node`` The node for this individual state. h](j)}(h``struct hlist_node *node``h]j)}(hj~+h]hstruct hlist_node *node}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|+ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMxhjx+ubj)}(hhh]h)}(h#The node for this individual state.h]h#The node for this individual state.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMxhj+ubah}(h]h ]h"]h$]h&]uh1jhjx+ubeh}(h]h ]h"]h$]h&]uh1jhj+hMxhj<+ubeh}(h]h ]h"]h$]h&]uh1jhj +ubh)}(h**Description**h]j$)}(hj+h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj+ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMzhj +ubh)}(hInstalls the instance for the **state** and invokes the registered startup callback on the online cpus which have already reached the **state**. The **state** must have been earlier marked as multi-instance by cpuhp_setup_state_multi().h](hInstalls the instance for the }(hj+hhhNhNubj$)}(h **state**h]hstate}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj+ubh_ and invokes the registered startup callback on the online cpus which have already reached the }(hj+hhhNhNubj$)}(h **state**h]hstate}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj+ubh. The }(hj+hhhNhNubj$)}(h **state**h]hstate}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj+ubhN must have been earlier marked as multi-instance by cpuhp_setup_state_multi().}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMzhj +ubeh}(h]h ] kernelindentah"]h$]h&]uh1jQhj2hhhNhNubjD)}(hhh]h}(h]h ]h"]h$]h&]entries](jP-cpuhp_state_add_instance_nocalls (C function)"c.cpuhp_state_add_instance_nocallshNtauh1jChj2hhhNhNubjU)}(hhh](jZ)}(hVint cpuhp_state_add_instance_nocalls (enum cpuhp_state state, struct hlist_node *node)h]j`)}(hUint cpuhp_state_add_instance_nocalls(enum cpuhp_state state, struct hlist_node *node)h](jf)}(hinth]hint}(hj4,hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj0,hhh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMubjx)}(h h]h }(hjC,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj0,hhhjB,hMubj)}(h cpuhp_state_add_instance_nocallsh]j)}(h cpuhp_state_add_instance_nocallsh]h cpuhp_state_add_instance_nocalls}(hjU,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ,ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj0,hhhjB,hMubj)}(h1(enum cpuhp_state state, struct hlist_node *node)h](j)}(henum cpuhp_state stateh](j)}(hjh]henum}(hjq,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm,ubjx)}(h h]h }(hj~,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjm,ubh)}(hhh]j)}(h cpuhp_stateh]h cpuhp_state}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj,modnameN classnameNjj)}j]j)}jjW,sb"c.cpuhp_state_add_instance_nocallsasbuh1hhjm,ubjx)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjm,ubj)}(hstateh]hstate}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhji,ubj)}(hstruct hlist_node *nodeh](j)}(hj&h]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjx)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj,ubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj,modnameN classnameNjj)}j]j,"c.cpuhp_state_add_instance_nocallsasbuh1hhj,ubjx)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj,ubj^)}(hjh]h*}(hj -hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj,ubj)}(hnodeh]hnode}(hj--hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhji,ubeh}(h]h ]h"]h$]h&]jjuh1jhj0,hhhjB,hMubeh}(h]h ]h"]h$]h&]jjjuh1j_j j hj,,hhhjB,hMubah}(h]j',ah ](jjeh"]h$]h&]jj)jhuh1jYhjB,hMhj),hhubj)}(hhh]h)}(hBAdd an instance for a state without invoking the startup callback.h]hBAdd an instance for a state without invoking the startup callback.}(hjW-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhjT-hhubah}(h]h ]h"]h$]h&]uh1jhj),hhhjB,hMubeh}(h]h ](jfunctioneh"]h$]h&]jKjjLjo-jMjo-jNjOjPuh1jThhhj2hNhNubjR)}(hXQ**Parameters** ``enum cpuhp_state state`` The state for which the instance is installed ``struct hlist_node *node`` The node for this individual state. **Description** Installs the instance for the **state**. The **state** must have been earlier marked as multi-instance by cpuhp_setup_state_multi. NOP if SMP=n or HOTPLUG_CPU=n.h](h)}(h**Parameters**h]j$)}(hjy-h]h Parameters}(hj{-hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjw-ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhjs-ubj)}(hhh](j)}(hI``enum cpuhp_state state`` The state for which the instance is installed h](j)}(h``enum cpuhp_state state``h]j)}(hj-h]henum cpuhp_state state}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj-ubj)}(hhh]h)}(h-The state for which the instance is installedh]h-The state for which the instance is installed}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hMhj-ubj)}(h@``struct hlist_node *node`` The node for this individual state. h](j)}(h``struct hlist_node *node``h]j)}(hj-h]hstruct hlist_node *node}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj-ubj)}(hhh]h)}(h#The node for this individual state.h]h#The node for this individual state.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hMhj-ubeh}(h]h ]h"]h$]h&]uh1jhjs-ubh)}(h**Description**h]j$)}(hj .h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj .ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhjs-ubh)}(hInstalls the instance for the **state**. The **state** must have been earlier marked as multi-instance by cpuhp_setup_state_multi. NOP if SMP=n or HOTPLUG_CPU=n.h](hInstalls the instance for the }(hj".hhhNhNubj$)}(h **state**h]hstate}(hj*.hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj".ubh. The }(hj".hhhNhNubj$)}(h **state**h]hstate}(hj<.hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj".ubhk must have been earlier marked as multi-instance by cpuhp_setup_state_multi. NOP if SMP=n or HOTPLUG_CPU=n.}(hj".hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhjs-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jQhj2hhhNhNubjD)}(hhh]h}(h]h ]h"]h$]h&]entries](jP8cpuhp_state_add_instance_nocalls_cpuslocked (C function)-c.cpuhp_state_add_instance_nocalls_cpuslockedhNtauh1jChj2hhhNhNubjU)}(hhh](jZ)}(haint cpuhp_state_add_instance_nocalls_cpuslocked (enum cpuhp_state state, struct hlist_node *node)h]j`)}(h`int cpuhp_state_add_instance_nocalls_cpuslocked(enum cpuhp_state state, struct hlist_node *node)h](jf)}(hinth]hint}(hju.hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehjq.hhh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMubjx)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjq.hhhj.hMubj)}(h+cpuhp_state_add_instance_nocalls_cpuslockedh]j)}(h+cpuhp_state_add_instance_nocalls_cpuslockedh]h+cpuhp_state_add_instance_nocalls_cpuslocked}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjq.hhhj.hMubj)}(h1(enum cpuhp_state state, struct hlist_node *node)h](j)}(henum cpuhp_state stateh](j)}(hjh]henum}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubjx)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj.ubh)}(hhh]j)}(h cpuhp_stateh]h cpuhp_state}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj.modnameN classnameNjj)}j]j)}jj.sb-c.cpuhp_state_add_instance_nocalls_cpuslockedasbuh1hhj.ubjx)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj.ubj)}(hstateh]hstate}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hstruct hlist_node *nodeh](j)}(hj&h]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjx)}(h h]h }(hj$/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj/ubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hj5/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2/ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj7/modnameN classnameNjj)}j]j.-c.cpuhp_state_add_instance_nocalls_cpuslockedasbuh1hhj/ubjx)}(h h]h }(hjS/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj/ubj^)}(hjh]h*}(hja/hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj/ubj)}(hnodeh]hnode}(hjn/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubeh}(h]h ]h"]h$]h&]jjuh1jhjq.hhhj.hMubeh}(h]h ]h"]h$]h&]jjjuh1j_j j hjm.hhhj.hMubah}(h]jh.ah ](jjeh"]h$]h&]jj)jhuh1jYhj.hMhjj.hhubj)}(hhh]h)}(hfAdd an instance for a state without invoking the startup callback from a cpus_read_lock() held region.h]hfAdd an instance for a state without invoking the startup callback from a cpus_read_lock() held region.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj/hhubah}(h]h ]h"]h$]h&]uh1jhjj.hhhj.hMubeh}(h]h ](jfunctioneh"]h$]h&]jKjjLj/jMj/jNjOjPuh1jThhhj2hNhNubjR)}(hX%**Parameters** ``enum cpuhp_state state`` The state for which the instance is installed ``struct hlist_node *node`` The node for this individual state. **Description** Same as cpuhp_state_add_instance_nocalls() except that it must be invoked from within a cpus_read_lock() held region.h](h)}(h**Parameters**h]j$)}(hj/h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj/ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj/ubj)}(hhh](j)}(hI``enum cpuhp_state state`` The state for which the instance is installed h](j)}(h``enum cpuhp_state state``h]j)}(hj/h]henum cpuhp_state state}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj/ubj)}(hhh]h)}(h-The state for which the instance is installedh]h-The state for which the instance is installed}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMhj/ubj)}(h@``struct hlist_node *node`` The node for this individual state. h](j)}(h``struct hlist_node *node``h]j)}(hj0h]hstruct hlist_node *node}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj 0ubj)}(hhh]h)}(h#The node for this individual state.h]h#The node for this individual state.}(hj+0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'0hMhj(0ubah}(h]h ]h"]h$]h&]uh1jhj 0ubeh}(h]h ]h"]h$]h&]uh1jhj'0hMhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/ubh)}(h**Description**h]j$)}(hjM0h]h Description}(hjO0hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjK0ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj/ubh)}(huSame as cpuhp_state_add_instance_nocalls() except that it must be invoked from within a cpus_read_lock() held region.h]huSame as cpuhp_state_add_instance_nocalls() except that it must be invoked from within a cpus_read_lock() held region.}(hjc0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jQhj2hhhNhNubjD)}(hhh]h}(h]h ]h"]h$]h&]entries](jPcpuhp_remove_state (C function)c.cpuhp_remove_statehNtauh1jChj2hhhNhNubjU)}(hhh](jZ)}(h0void cpuhp_remove_state (enum cpuhp_state state)h]j`)}(h/void cpuhp_remove_state(enum cpuhp_state state)h](jf)}(hvoidh]hvoid}(hj0hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj0hhh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMubjx)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj0hhhj0hMubj)}(hcpuhp_remove_stateh]j)}(hcpuhp_remove_stateh]hcpuhp_remove_state}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj0hhhj0hMubj)}(h(enum cpuhp_state state)h]j)}(henum cpuhp_state stateh](j)}(hjh]henum}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjx)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj0ubh)}(hhh]j)}(h cpuhp_stateh]h cpuhp_state}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj0modnameN classnameNjj)}j]j)}jj0sbc.cpuhp_remove_stateasbuh1hhj0ubjx)}(h h]h }(hj 1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj0ubj)}(hstateh]hstate}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubah}(h]h ]h"]h$]h&]jjuh1jhj0hhhj0hMubeh}(h]h ]h"]h$]h&]jjjuh1j_j j hj0hhhj0hMubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1jYhj0hMhj0hhubj)}(hhh]h)}(h6Remove hotplug state callbacks and invoke the teardownh]h6Remove hotplug state callbacks and invoke the teardown}(hjE1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhjB1hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj0hMubeh}(h]h ](jfunctioneh"]h$]h&]jKjjLj]1jMj]1jNjOjPuh1jThhhj2hNhNubjR)}(h**Parameters** ``enum cpuhp_state state`` The state for which the calls are removed **Description** Removes the callback functions and invokes the teardown callback on the online cpus which have already reached the **state**.h](h)}(h**Parameters**h]j$)}(hjg1h]h Parameters}(hji1hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hje1ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhja1ubj)}(hhh]j)}(hE``enum cpuhp_state state`` The state for which the calls are removed h](j)}(h``enum cpuhp_state state``h]j)}(hj1h]henum cpuhp_state state}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj1ubj)}(hhh]h)}(h)The state for which the calls are removedh]h)The state for which the calls are removed}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj}1ubah}(h]h ]h"]h$]h&]uh1jhja1ubh)}(h**Description**h]j$)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj1ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhja1ubh)}(h}Removes the callback functions and invokes the teardown callback on the online cpus which have already reached the **state**.h](hsRemoves the callback functions and invokes the teardown callback on the online cpus which have already reached the }(hj1hhhNhNubj$)}(h **state**h]hstate}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj1ubh.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhja1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jQhj2hhhNhNubjD)}(hhh]h}(h]h ]h"]h$]h&]entries](jP'cpuhp_remove_state_nocalls (C function)c.cpuhp_remove_state_nocallshNtauh1jChj2hhhNhNubjU)}(hhh](jZ)}(h8void cpuhp_remove_state_nocalls (enum cpuhp_state state)h]j`)}(h7void cpuhp_remove_state_nocalls(enum cpuhp_state state)h](jf)}(hvoidh]hvoid}(hj2hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj2hhh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMubjx)}(h h]h }(hj'2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj2hhhj&2hMubj)}(hcpuhp_remove_state_nocallsh]j)}(hcpuhp_remove_state_nocallsh]hcpuhp_remove_state_nocalls}(hj92hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj52ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj2hhhj&2hMubj)}(h(enum cpuhp_state state)h]j)}(henum cpuhp_state stateh](j)}(hjh]henum}(hjU2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ2ubjx)}(h h]h }(hjb2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjQ2ubh)}(hhh]j)}(h cpuhp_stateh]h cpuhp_state}(hjs2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp2ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetju2modnameN classnameNjj)}j]j)}jj;2sbc.cpuhp_remove_state_nocallsasbuh1hhjQ2ubjx)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjQ2ubj)}(hstateh]hstate}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjM2ubah}(h]h ]h"]h$]h&]jjuh1jhj2hhhj&2hMubeh}(h]h ]h"]h$]h&]jjjuh1j_j j hj2hhhj&2hMubah}(h]j 2ah ](jjeh"]h$]h&]jj)jhuh1jYhj&2hMhj 2hhubj)}(hhh]h)}(hERemove hotplug state callbacks without invoking the teardown callbackh]hERemove hotplug state callbacks without invoking the teardown callback}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj2hhubah}(h]h ]h"]h$]h&]uh1jhj 2hhhj&2hMubeh}(h]h ](jfunctioneh"]h$]h&]jKjjLj2jMj2jNjOjPuh1jThhhj2hNhNubjR)}(hV**Parameters** ``enum cpuhp_state state`` The state for which the calls are removedh](h)}(h**Parameters**h]j$)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj2ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj2ubj)}(hhh]j)}(hD``enum cpuhp_state state`` The state for which the calls are removedh](j)}(h``enum cpuhp_state state``h]j)}(hj 3h]hafenum cpuhp_state state}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 3ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj3ubj)}(hhh]h)}(h)The state for which the calls are removedh]h)The state for which the calls are removed}(hj%3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj"3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj!3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jQhj2hhhNhNubjD)}(hhh]h}(h]h ]h"]h$]h&]entries](jP2cpuhp_remove_state_nocalls_cpuslocked (C function)'c.cpuhp_remove_state_nocalls_cpuslockedhNtauh1jChj2hhhNhNubjU)}(hhh](jZ)}(hCvoid cpuhp_remove_state_nocalls_cpuslocked (enum cpuhp_state state)h]j`)}(hBvoid cpuhp_remove_state_nocalls_cpuslocked(enum cpuhp_state state)h](jf)}(hvoidh]hvoid}(hjf3hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehjb3hhh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMubjx)}(h h]h }(hju3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjb3hhhjt3hMubj)}(h%cpuhp_remove_state_nocalls_cpuslockedh]j)}(h%cpuhp_remove_state_nocalls_cpuslockedh]h%cpuhp_remove_state_nocalls_cpuslocked}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjb3hhhjt3hMubj)}(h(enum cpuhp_state state)h]j)}(henum cpuhp_state stateh](j)}(hjh]henum}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjx)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj3ubh)}(hhh]j)}(h cpuhp_stateh]h cpuhp_state}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj3modnameN classnameNjj)}j]j)}jj3sb'c.cpuhp_remove_state_nocalls_cpuslockedasbuh1hhj3ubjx)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj3ubj)}(hstateh]hstate}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubah}(h]h ]h"]h$]h&]jjuh1jhjb3hhhjt3hMubeh}(h]h ]h"]h$]h&]jjjuh1j_j j hj^3hhhjt3hMubah}(h]jY3ah ](jjeh"]h$]h&]jj)jhuh1jYhjt3hMhj[3hhubj)}(hhh]h)}(h]Remove hotplug state callbacks without invoking teardown from a cpus_read_lock() held region.h]h]Remove hotplug state callbacks without invoking teardown from a cpus_read_lock() held region.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj4hhubah}(h]h ]h"]h$]h&]uh1jhj[3hhhjt3hMubeh}(h]h ](jfunctioneh"]h$]h&]jKjjLj14jMj14jNjOjPuh1jThhhj2hNhNubjR)}(h**Parameters** ``enum cpuhp_state state`` The state for which the calls are removed **Description** Same as cpuhp_remove_state nocalls() except that it must be invoked from within a cpus_read_lock() held region.h](h)}(h**Parameters**h]j$)}(hj;4h]h Parameters}(hj=4hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj94ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj54ubj)}(hhh]j)}(hE``enum cpuhp_state state`` The state for which the calls are removed h](j)}(h``enum cpuhp_state state``h]j)}(hjZ4h]henum cpuhp_state state}(hj\4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX4ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhjT4ubj)}(hhh]h)}(h)The state for which the calls are removedh]h)The state for which the calls are removed}(hjs4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjo4hMhjp4ubah}(h]h ]h"]h$]h&]uh1jhjT4ubeh}(h]h ]h"]h$]h&]uh1jhjo4hMhjQ4ubah}(h]h ]h"]h$]h&]uh1jhj54ubh)}(h**Description**h]j$)}(hj4h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj4ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj54ubh)}(hoSame as cpuhp_remove_state nocalls() except that it must be invoked from within a cpus_read_lock() held region.h]hoSame as cpuhp_remove_state nocalls() except that it must be invoked from within a cpus_read_lock() held region.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj54ubeh}(h]h ] kernelindentah"]h$]h&]uh1jQhj2hhhNhNubjD)}(hhh]h}(h]h ]h"]h$]h&]entries](jP%cpuhp_remove_multi_state (C function)c.cpuhp_remove_multi_statehNtauh1jChj2hhhNhNubjU)}(hhh](jZ)}(h6void cpuhp_remove_multi_state (enum cpuhp_state state)h]j`)}(h5void cpuhp_remove_multi_state(enum cpuhp_state state)h](jf)}(hvoidh]hvoid}(hj4hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehj4hhh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMubjx)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj4hhhj4hMubj)}(hcpuhp_remove_multi_stateh]j)}(hcpuhp_remove_multi_stateh]hcpuhp_remove_multi_state}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj4hhhj4hMubj)}(h(enum cpuhp_state state)h]j)}(henum cpuhp_state stateh](j)}(hjh]henum}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjx)}(h h]h }(hj$5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj5ubh)}(hhh]j)}(h cpuhp_stateh]h cpuhp_state}(hj55hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj25ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj75modnameN classnameNjj)}j]j)}jj4sbc.cpuhp_remove_multi_stateasbuh1hhj5ubjx)}(h h]h }(hjU5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj5ubj)}(hstateh]hstate}(hjc5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubah}(h]h ]h"]h$]h&]jjuh1jhj4hhhj4hMubeh}(h]h ]h"]h$]h&]jjjuh1j_j j hj4hhhj4hMubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1jYhj4hMhj4hhubj)}(hhh]h)}(h#Remove hotplug multi state callbackh]h#Remove hotplug multi state callback}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj5hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhj4hMubeh}(h]h ](jfunctioneh"]h$]h&]jKjjLj5jMj5jNjOjPuh1jThhhj2hNhNubjR)}(hX**Parameters** ``enum cpuhp_state state`` The state for which the calls are removed **Description** Removes the callback functions from a multi state. This is the reverse of cpuhp_setup_state_multi(). All instances should have been removed before invoking this function.h](h)}(h**Parameters**h]j$)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj5ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj5ubj)}(hhh]j)}(hE``enum cpuhp_state state`` The state for which the calls are removed h](j)}(h``enum cpuhp_state state``h]j)}(hj5h]henum cpuhp_state state}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj5ubj)}(hhh]h)}(h)The state for which the calls are removedh]h)The state for which the calls are removed}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubh)}(h**Description**h]j$)}(hj 6h]h Description}(hj 6hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj6ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj5ubh)}(hRemoves the callback functions from a multi state. This is the reverse of cpuhp_setup_state_multi(). All instances should have been removed before invoking this function.h]hRemoves the callback functions from a multi state. This is the reverse of cpuhp_setup_state_multi(). All instances should have been removed before invoking this function.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jQhj2hhhNhNubjD)}(hhh]h}(h]h ]h"]h$]h&]entries](jP(cpuhp_state_remove_instance (C function)c.cpuhp_state_remove_instancehNtauh1jChj2hhhNhNubjU)}(hhh](jZ)}(hQint cpuhp_state_remove_instance (enum cpuhp_state state, struct hlist_node *node)h]j`)}(hPint cpuhp_state_remove_instance(enum cpuhp_state state, struct hlist_node *node)h](jf)}(hinth]hint}(hjN6hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehjJ6hhh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMubjx)}(h h]h }(hj]6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjJ6hhhj\6hMubj)}(hcpuhp_state_remove_instanceh]j)}(hcpuhp_state_remove_instanceh]hcpuhp_state_remove_instance}(hjo6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk6ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjJ6hhhj\6hMubj)}(h1(enum cpuhp_state state, struct hlist_node *node)h](j)}(henum cpuhp_state stateh](j)}(hjh]henum}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjx)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj6ubh)}(hhh]j)}(h cpuhp_stateh]h cpuhp_state}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj6modnameN classnameNjj)}j]j)}jjq6sbc.cpuhp_state_remove_instanceasbuh1hhj6ubjx)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj6ubj)}(hstateh]hstate}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hstruct hlist_node *nodeh](j)}(hj&h]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjx)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj6ubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 7ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj7modnameN classnameNjj)}j]j6c.cpuhp_state_remove_instanceasbuh1hhj6ubjx)}(h h]h }(hj,7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj6ubj^)}(hjh]h*}(hj:7hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj6ubj)}(hnodeh]hnode}(hjG7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubeh}(h]h ]h"]h$]h&]jjuh1jhjJ6hhhj\6hMubeh}(h]h ]h"]h$]h&]jjjuh1j_j j hjF6hhhj\6hMubah}(h]jA6ah ](jjeh"]h$]h&]jj)jhuh1jYhj\6hMhjC6hhubj)}(hhh]h)}(hCRemove hotplug instance from state and invoke the teardown callbackh]hCRemove hotplug instance from state and invoke the teardown callback}(hjq7hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhjn7hhubah}(h]h ]h"]h$]h&]uh1jhjC6hhhj\6hMubeh}(h]h ](jfunctioneh"]h$]h&]jKjjLj7jMj7jNjOjPuh1jThhhj2hNhNubjR)}(hX**Parameters** ``enum cpuhp_state state`` The state from which the instance is removed ``struct hlist_node *node`` The node for this individual state. **Description** Removes the instance and invokes the teardown callback on the online cpus which have already reached **state**.h](h)}(h**Parameters**h]j$)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj7ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj7ubj)}(hhh](j)}(hH``enum cpuhp_state state`` The state from which the instance is removed h](j)}(h``enum cpuhp_state state``h]j)}(hj7h]henum cpuhp_state state}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj7ubj)}(hhh]h)}(h,The state from which the instance is removedh]h,The state from which the instance is removed}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj7ubj)}(h@``struct hlist_node *node`` The node for this individual state. h](j)}(h``struct hlist_node *node``h]j)}(hj7h]hstruct hlist_node *node}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj7ubj)}(hhh]h)}(h#The node for this individual state.h]h#The node for this individual state.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj8ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj8hMhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7ubh)}(h**Description**h]j$)}(hj&8h]h Description}(hj(8hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj$8ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj7ubh)}(hoRemoves the instance and invokes the teardown callback on the online cpus which have already reached **state**.h](heRemoves the instance and invokes the teardown callback on the online cpus which have already reached }(hj<8hhhNhNubj$)}(h **state**h]hstate}(hjD8hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj<8ubh.}(hj<8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jQhj2hhhNhNubjD)}(hhh]h}(h]h ]h"]h$]h&]entries](jP0cpuhp_state_remove_instance_nocalls (C function)%c.cpuhp_state_remove_instance_nocallshNtauh1jChj2hhhNhNubjU)}(hhh](jZ)}(hYint cpuhp_state_remove_instance_nocalls (enum cpuhp_state state, struct hlist_node *node)h]j`)}(hXint cpuhp_state_remove_instance_nocalls(enum cpuhp_state state, struct hlist_node *node)h](jf)}(hinth]hint}(hj}8hhhNhNubah}(h]h ]jrah"]h$]h&]uh1jehjy8hhh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMubjx)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhjy8hhhj8hMubj)}(h#cpuhp_state_remove_instance_nocallsh]j)}(h#cpuhp_state_remove_instance_nocallsh]h#cpuhp_state_remove_instance_nocalls}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjy8hhhj8hMubj)}(h1(enum cpuhp_state state, struct hlist_node *node)h](j)}(henum cpuhp_state stateh](j)}(hjh]henum}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjx)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj8ubh)}(hhh]j)}(h cpuhp_stateh]h cpuhp_state}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj8modnameN classnameNjj)}j]j)}jj8sb%c.cpuhp_state_remove_instance_nocallsasbuh1hhj8ubjx)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj8ubj)}(hstateh]hstate}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(hstruct hlist_node *nodeh](j)}(hj&h]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjx)}(h h]h }(hj,9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj9ubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hj=9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:9ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj?9modnameN classnameNjj)}j]j8%c.cpuhp_state_remove_instance_nocallsasbuh1hhj9ubjx)}(h h]h }(hj[9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jwhj9ubj^)}(hjh]h*}(hji9hhhNhNubah}(h]h ]jiah"]h$]h&]uh1j]hj9ubj)}(hnodeh]hnode}(hjv9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubeh}(h]h ]h"]h$]h&]jjuh1jhjy8hhhj8hMubeh}(h]h ]h"]h$]h&]jjjuh1j_j j hju8hhhj8hMubah}(h]jp8ah ](jjeh"]h$]h&]jj)jhuh1jYhj8hMhjr8hhubj)}(hhh]h)}(hIRemove hotplug instance from state without invoking the teardown callbackh]hIRemove hotplug instance from state without invoking the teardown callback}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj9hhubah}(h]h ]h"]h$]h&]uh1jhjr8hhhj8hMubeh}(h]h ](jfunctioneh"]h$]h&]jKjjLj9jMj9jNjOjPuh1jThhhj2hNhNubjR)}(h**Parameters** ``enum cpuhp_state state`` The state from which the instance is removed ``struct hlist_node *node`` The node for this individual state. **Description** Removes the instance without invoking the teardown callback.h](h)}(h**Parameters**h]j$)}(hj9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj9ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj9ubj)}(hhh](j)}(hH``enum cpuhp_state state`` The state from which the instance is removed h](j)}(h``enum cpuhp_state state``h]j)}(hj9h]henum cpuhp_state state}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj9ubj)}(hhh]h)}(h,The state from which the instance is removedh]h,The state from which the instance is removed}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj9ubj)}(h@``struct hlist_node *node`` The node for this individual state. h](j)}(h``struct hlist_node *node``h]j)}(hj:h]hstruct hlist_node *node}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj:ubj)}(hhh]h)}(h#The node for this individual state.h]h#The node for this individual state.}(hj3:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/:hMhj0:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj/:hMhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9ubh)}(h**Description**h]j$)}(hjU:h]h Description}(hjW:hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjS:ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/cpu_hotplug:761: ./include/linux/cpuhotplug.hhMhj9ubh)}(h