-
Notifications
You must be signed in to change notification settings - Fork 5
/
cpu.c.rej
36 lines (35 loc) · 1.31 KB
/
cpu.c.rej
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- drivers/base/cpu.c 2013-01-04 04:01:37.000000000 -0800
+++ drivers/base/cpu.c 2013-03-19 04:01:00.000000000 -0700
@@ -220,31 +203,8 @@
static void cpu_device_release(struct device *dev)
{
- /*
- * This is an empty function to prevent the driver core from spitting a
- * warning at us. Yes, I know this is directly opposite of what the
- * documentation for the driver core and kobjects say, and the author
- * of this code has already been publically ridiculed for doing
- * something as foolish as this. However, at this point in time, it is
- * the only way to handle the issue of statically allocated cpu
- * devices. The different architectures will have their cpu device
- * code reworked to properly handle this in the near future, so this
- * function will then be changed to correctly free up the memory held
- * by the cpu device.
- *
- * Never copy this way of doing things, or you too will be made fun of
- * on the linux-kerenl list, you have been warned.
- */
-}
-
-/*
- * register_cpu - Setup a sysfs device for a CPU.
- * @cpu - cpu->hotpluggable field set to 1 will generate a control file in
- * sysfs for this CPU.
- * @num - CPU number to use when creating the device.
- *
- * Initialize and register the CPU device.
- */
+}
+
int __cpuinit register_cpu(struct cpu *cpu, int num)
{
int error;