Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e32b073 authored by Satyam Sharma's avatar Satyam Sharma Committed by Thomas Gleixner
Browse files

i386: misc cpuinit annotations



cpuid_class_cpu_callback() is callback function of a CPU hotplug
notifier_block (that is already marked as __cpuinitdata). Therefore
it can safely be marked as __cpuinit.

cpuid_device_create() is only referenced from other functions that
are __cpuinit or __init. So it can also be safely marked __cpuinit.

[ tglx: arch/x86 adaptation ]

Signed-off-by: default avatarSatyam Sharma <satyam@infradead.org>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 761c4bf8
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ static const struct file_operations cpuid_fops = {
	.open = cpuid_open,
};

static int cpuid_device_create(int i)
static int __cpuinit cpuid_device_create(int i)
{
	int err = 0;
	struct device *dev;
@@ -161,7 +161,9 @@ static int cpuid_device_create(int i)
	return err;
}

static int cpuid_class_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu)
static int __cpuinit cpuid_class_cpu_callback(struct notifier_block *nfb,
					      unsigned long action,
					      void *hcpu)
{
	unsigned int cpu = (unsigned long)hcpu;