cpu.c (41c177cf354126a22443b5c80cec9fdd313e67e1) | cpu.c (02aff8480533817a29e820729360866441d7403d) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * CPU subsystem support 4 */ 5 6#include <linux/kernel.h> 7#include <linux/module.h> 8#include <linux/init.h> --- 130 unchanged lines hidden (view full) --- 139 return cnt; 140} 141 142static DEVICE_ATTR(probe, S_IWUSR, NULL, cpu_probe_store); 143static DEVICE_ATTR(release, S_IWUSR, NULL, cpu_release_store); 144#endif /* CONFIG_ARCH_CPU_PROBE_RELEASE */ 145#endif /* CONFIG_HOTPLUG_CPU */ 146 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * CPU subsystem support 4 */ 5 6#include <linux/kernel.h> 7#include <linux/module.h> 8#include <linux/init.h> --- 130 unchanged lines hidden (view full) --- 139 return cnt; 140} 141 142static DEVICE_ATTR(probe, S_IWUSR, NULL, cpu_probe_store); 143static DEVICE_ATTR(release, S_IWUSR, NULL, cpu_release_store); 144#endif /* CONFIG_ARCH_CPU_PROBE_RELEASE */ 145#endif /* CONFIG_HOTPLUG_CPU */ 146 |
147#ifdef CONFIG_KEXEC_CORE | 147#ifdef CONFIG_CRASH_DUMP |
148#include <linux/kexec.h> 149 150static ssize_t crash_notes_show(struct device *dev, 151 struct device_attribute *attr, 152 char *buf) 153{ 154 struct cpu *cpu = container_of(dev, struct cpu, dev); 155 unsigned long long addr; --- 28 unchanged lines hidden (view full) --- 184}; 185 186static const struct attribute_group crash_note_cpu_attr_group = { 187 .attrs = crash_note_cpu_attrs, 188}; 189#endif 190 191static const struct attribute_group *common_cpu_attr_groups[] = { | 148#include <linux/kexec.h> 149 150static ssize_t crash_notes_show(struct device *dev, 151 struct device_attribute *attr, 152 char *buf) 153{ 154 struct cpu *cpu = container_of(dev, struct cpu, dev); 155 unsigned long long addr; --- 28 unchanged lines hidden (view full) --- 184}; 185 186static const struct attribute_group crash_note_cpu_attr_group = { 187 .attrs = crash_note_cpu_attrs, 188}; 189#endif 190 191static const struct attribute_group *common_cpu_attr_groups[] = { |
192#ifdef CONFIG_KEXEC_CORE | 192#ifdef CONFIG_CRASH_DUMP |
193 &crash_note_cpu_attr_group, 194#endif 195 NULL 196}; 197 198static const struct attribute_group *hotplugable_cpu_attr_groups[] = { | 193 &crash_note_cpu_attr_group, 194#endif 195 NULL 196}; 197 198static const struct attribute_group *hotplugable_cpu_attr_groups[] = { |
199#ifdef CONFIG_KEXEC_CORE | 199#ifdef CONFIG_CRASH_DUMP |
200 &crash_note_cpu_attr_group, 201#endif 202 NULL 203}; 204 205/* 206 * Print cpu online, possible, present, and system maps 207 */ --- 443 unchanged lines hidden --- | 200 &crash_note_cpu_attr_group, 201#endif 202 NULL 203}; 204 205/* 206 * Print cpu online, possible, present, and system maps 207 */ --- 443 unchanged lines hidden --- |