diff options
Diffstat (limited to 'arch/i386/kernel')
-rw-r--r-- | arch/i386/kernel/acpi/cstate.c | 6 | ||||
-rw-r--r-- | arch/i386/kernel/cpu/mcheck/non-fatal.c | 6 | ||||
-rw-r--r-- | arch/i386/kernel/cpu/mcheck/therm_throt.c | 2 | ||||
-rw-r--r-- | arch/i386/kernel/cpuid.c | 2 | ||||
-rw-r--r-- | arch/i386/kernel/crash.c | 66 | ||||
-rw-r--r-- | arch/i386/kernel/io_apic.c | 1 | ||||
-rw-r--r-- | arch/i386/kernel/kprobes.c | 4 | ||||
-rw-r--r-- | arch/i386/kernel/microcode.c | 2 | ||||
-rw-r--r-- | arch/i386/kernel/msr.c | 2 | ||||
-rw-r--r-- | arch/i386/kernel/reboot.c | 1 | ||||
-rw-r--r-- | arch/i386/kernel/setup.c | 3 | ||||
-rw-r--r-- | arch/i386/kernel/smp.c | 4 | ||||
-rw-r--r-- | arch/i386/kernel/smpboot.c | 11 | ||||
-rw-r--r-- | arch/i386/kernel/sysenter.c | 2 | ||||
-rw-r--r-- | arch/i386/kernel/traps.c | 2 | ||||
-rw-r--r-- | arch/i386/kernel/tsc.c | 4 |
16 files changed, 26 insertions, 92 deletions
diff --git a/arch/i386/kernel/acpi/cstate.c b/arch/i386/kernel/acpi/cstate.c index 4664b55f623e..12e937c1ce4b 100644 --- a/arch/i386/kernel/acpi/cstate.c +++ b/arch/i386/kernel/acpi/cstate.c | |||
@@ -156,10 +156,8 @@ static int __init ffh_cstate_init(void) | |||
156 | 156 | ||
157 | static void __exit ffh_cstate_exit(void) | 157 | static void __exit ffh_cstate_exit(void) |
158 | { | 158 | { |
159 | if (cpu_cstate_entry) { | 159 | free_percpu(cpu_cstate_entry); |
160 | free_percpu(cpu_cstate_entry); | 160 | cpu_cstate_entry = NULL; |
161 | cpu_cstate_entry = NULL; | ||
162 | } | ||
163 | } | 161 | } |
164 | 162 | ||
165 | arch_initcall(ffh_cstate_init); | 163 | arch_initcall(ffh_cstate_init); |
diff --git a/arch/i386/kernel/cpu/mcheck/non-fatal.c b/arch/i386/kernel/cpu/mcheck/non-fatal.c index 1f9153ae5b03..6b5d3518a1c0 100644 --- a/arch/i386/kernel/cpu/mcheck/non-fatal.c +++ b/arch/i386/kernel/cpu/mcheck/non-fatal.c | |||
@@ -51,10 +51,10 @@ static void mce_checkregs (void *info) | |||
51 | } | 51 | } |
52 | } | 52 | } |
53 | 53 | ||
54 | static void mce_work_fn(void *data); | 54 | static void mce_work_fn(struct work_struct *work); |
55 | static DECLARE_WORK(mce_work, mce_work_fn, NULL); | 55 | static DECLARE_DELAYED_WORK(mce_work, mce_work_fn); |
56 | 56 | ||
57 | static void mce_work_fn(void *data) | 57 | static void mce_work_fn(struct work_struct *work) |
58 | { | 58 | { |
59 | on_each_cpu(mce_checkregs, NULL, 1, 1); | 59 | on_each_cpu(mce_checkregs, NULL, 1, 1); |
60 | schedule_delayed_work(&mce_work, MCE_RATE); | 60 | schedule_delayed_work(&mce_work, MCE_RATE); |
diff --git a/arch/i386/kernel/cpu/mcheck/therm_throt.c b/arch/i386/kernel/cpu/mcheck/therm_throt.c index bad8b4420709..065005c3f168 100644 --- a/arch/i386/kernel/cpu/mcheck/therm_throt.c +++ b/arch/i386/kernel/cpu/mcheck/therm_throt.c | |||
@@ -116,7 +116,6 @@ static __cpuinit int thermal_throttle_add_dev(struct sys_device *sys_dev) | |||
116 | return sysfs_create_group(&sys_dev->kobj, &thermal_throttle_attr_group); | 116 | return sysfs_create_group(&sys_dev->kobj, &thermal_throttle_attr_group); |
117 | } | 117 | } |
118 | 118 | ||
119 | #ifdef CONFIG_HOTPLUG_CPU | ||
120 | static __cpuinit void thermal_throttle_remove_dev(struct sys_device *sys_dev) | 119 | static __cpuinit void thermal_throttle_remove_dev(struct sys_device *sys_dev) |
121 | { | 120 | { |
122 | return sysfs_remove_group(&sys_dev->kobj, &thermal_throttle_attr_group); | 121 | return sysfs_remove_group(&sys_dev->kobj, &thermal_throttle_attr_group); |
@@ -153,7 +152,6 @@ static struct notifier_block thermal_throttle_cpu_notifier = | |||
153 | { | 152 | { |
154 | .notifier_call = thermal_throttle_cpu_callback, | 153 | .notifier_call = thermal_throttle_cpu_callback, |
155 | }; | 154 | }; |
156 | #endif /* CONFIG_HOTPLUG_CPU */ | ||
157 | 155 | ||
158 | static __init int thermal_throttle_init_device(void) | 156 | static __init int thermal_throttle_init_device(void) |
159 | { | 157 | { |
diff --git a/arch/i386/kernel/cpuid.c b/arch/i386/kernel/cpuid.c index 5c5d4507ee7d..db6dd20c3589 100644 --- a/arch/i386/kernel/cpuid.c +++ b/arch/i386/kernel/cpuid.c | |||
@@ -166,7 +166,6 @@ static int cpuid_device_create(int i) | |||
166 | return err; | 166 | return err; |
167 | } | 167 | } |
168 | 168 | ||
169 | #ifdef CONFIG_HOTPLUG_CPU | ||
170 | static int cpuid_class_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu) | 169 | static int cpuid_class_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu) |
171 | { | 170 | { |
172 | unsigned int cpu = (unsigned long)hcpu; | 171 | unsigned int cpu = (unsigned long)hcpu; |
@@ -186,7 +185,6 @@ static struct notifier_block __cpuinitdata cpuid_class_cpu_notifier = | |||
186 | { | 185 | { |
187 | .notifier_call = cpuid_class_cpu_callback, | 186 | .notifier_call = cpuid_class_cpu_callback, |
188 | }; | 187 | }; |
189 | #endif /* !CONFIG_HOTPLUG_CPU */ | ||
190 | 188 | ||
191 | static int __init cpuid_init(void) | 189 | static int __init cpuid_init(void) |
192 | { | 190 | { |
diff --git a/arch/i386/kernel/crash.c b/arch/i386/kernel/crash.c index 144b43288965..a5e0e990ea95 100644 --- a/arch/i386/kernel/crash.c +++ b/arch/i386/kernel/crash.c | |||
@@ -31,68 +31,6 @@ | |||
31 | /* This keeps a track of which one is crashing cpu. */ | 31 | /* This keeps a track of which one is crashing cpu. */ |
32 | static int crashing_cpu; | 32 | static int crashing_cpu; |
33 | 33 | ||
34 | static u32 *append_elf_note(u32 *buf, char *name, unsigned type, void *data, | ||
35 | size_t data_len) | ||
36 | { | ||
37 | struct elf_note note; | ||
38 | |||
39 | note.n_namesz = strlen(name) + 1; | ||
40 | note.n_descsz = data_len; | ||
41 | note.n_type = type; | ||
42 | memcpy(buf, ¬e, sizeof(note)); | ||
43 | buf += (sizeof(note) +3)/4; | ||
44 | memcpy(buf, name, note.n_namesz); | ||
45 | buf += (note.n_namesz + 3)/4; | ||
46 | memcpy(buf, data, note.n_descsz); | ||
47 | buf += (note.n_descsz + 3)/4; | ||
48 | |||
49 | return buf; | ||
50 | } | ||
51 | |||
52 | static void final_note(u32 *buf) | ||
53 | { | ||
54 | struct elf_note note; | ||
55 | |||
56 | note.n_namesz = 0; | ||
57 | note.n_descsz = 0; | ||
58 | note.n_type = 0; | ||
59 | memcpy(buf, ¬e, sizeof(note)); | ||
60 | } | ||
61 | |||
62 | static void crash_save_this_cpu(struct pt_regs *regs, int cpu) | ||
63 | { | ||
64 | struct elf_prstatus prstatus; | ||
65 | u32 *buf; | ||
66 | |||
67 | if ((cpu < 0) || (cpu >= NR_CPUS)) | ||
68 | return; | ||
69 | |||
70 | /* Using ELF notes here is opportunistic. | ||
71 | * I need a well defined structure format | ||
72 | * for the data I pass, and I need tags | ||
73 | * on the data to indicate what information I have | ||
74 | * squirrelled away. ELF notes happen to provide | ||
75 | * all of that, so there is no need to invent something new. | ||
76 | */ | ||
77 | buf = (u32*)per_cpu_ptr(crash_notes, cpu); | ||
78 | if (!buf) | ||
79 | return; | ||
80 | memset(&prstatus, 0, sizeof(prstatus)); | ||
81 | prstatus.pr_pid = current->pid; | ||
82 | elf_core_copy_regs(&prstatus.pr_reg, regs); | ||
83 | buf = append_elf_note(buf, "CORE", NT_PRSTATUS, &prstatus, | ||
84 | sizeof(prstatus)); | ||
85 | final_note(buf); | ||
86 | } | ||
87 | |||
88 | static void crash_save_self(struct pt_regs *regs) | ||
89 | { | ||
90 | int cpu; | ||
91 | |||
92 | cpu = safe_smp_processor_id(); | ||
93 | crash_save_this_cpu(regs, cpu); | ||
94 | } | ||
95 | |||
96 | #if defined(CONFIG_SMP) && defined(CONFIG_X86_LOCAL_APIC) | 34 | #if defined(CONFIG_SMP) && defined(CONFIG_X86_LOCAL_APIC) |
97 | static atomic_t waiting_for_crash_ipi; | 35 | static atomic_t waiting_for_crash_ipi; |
98 | 36 | ||
@@ -121,7 +59,7 @@ static int crash_nmi_callback(struct notifier_block *self, | |||
121 | crash_fixup_ss_esp(&fixed_regs, regs); | 59 | crash_fixup_ss_esp(&fixed_regs, regs); |
122 | regs = &fixed_regs; | 60 | regs = &fixed_regs; |
123 | } | 61 | } |
124 | crash_save_this_cpu(regs, cpu); | 62 | crash_save_cpu(regs, cpu); |
125 | disable_local_APIC(); | 63 | disable_local_APIC(); |
126 | atomic_dec(&waiting_for_crash_ipi); | 64 | atomic_dec(&waiting_for_crash_ipi); |
127 | /* Assume hlt works */ | 65 | /* Assume hlt works */ |
@@ -195,5 +133,5 @@ void machine_crash_shutdown(struct pt_regs *regs) | |||
195 | #if defined(CONFIG_X86_IO_APIC) | 133 | #if defined(CONFIG_X86_IO_APIC) |
196 | disable_IO_APIC(); | 134 | disable_IO_APIC(); |
197 | #endif | 135 | #endif |
198 | crash_save_self(regs); | 136 | crash_save_cpu(regs, safe_smp_processor_id()); |
199 | } | 137 | } |
diff --git a/arch/i386/kernel/io_apic.c b/arch/i386/kernel/io_apic.c index 7f015a71ab55..e21dcde0790e 100644 --- a/arch/i386/kernel/io_apic.c +++ b/arch/i386/kernel/io_apic.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include <linux/pci.h> | 34 | #include <linux/pci.h> |
35 | #include <linux/msi.h> | 35 | #include <linux/msi.h> |
36 | #include <linux/htirq.h> | 36 | #include <linux/htirq.h> |
37 | #include <linux/freezer.h> | ||
37 | 38 | ||
38 | #include <asm/io.h> | 39 | #include <asm/io.h> |
39 | #include <asm/smp.h> | 40 | #include <asm/smp.h> |
diff --git a/arch/i386/kernel/kprobes.c b/arch/i386/kernel/kprobes.c index fc79e1e859c4..af1d53344993 100644 --- a/arch/i386/kernel/kprobes.c +++ b/arch/i386/kernel/kprobes.c | |||
@@ -184,7 +184,7 @@ void __kprobes arch_disarm_kprobe(struct kprobe *p) | |||
184 | void __kprobes arch_remove_kprobe(struct kprobe *p) | 184 | void __kprobes arch_remove_kprobe(struct kprobe *p) |
185 | { | 185 | { |
186 | mutex_lock(&kprobe_mutex); | 186 | mutex_lock(&kprobe_mutex); |
187 | free_insn_slot(p->ainsn.insn); | 187 | free_insn_slot(p->ainsn.insn, (p->ainsn.boostable == 1)); |
188 | mutex_unlock(&kprobe_mutex); | 188 | mutex_unlock(&kprobe_mutex); |
189 | } | 189 | } |
190 | 190 | ||
@@ -333,7 +333,7 @@ static int __kprobes kprobe_handler(struct pt_regs *regs) | |||
333 | return 1; | 333 | return 1; |
334 | 334 | ||
335 | ss_probe: | 335 | ss_probe: |
336 | #ifndef CONFIG_PREEMPT | 336 | #if !defined(CONFIG_PREEMPT) || defined(CONFIG_PM) |
337 | if (p->ainsn.boostable == 1 && !p->post_handler){ | 337 | if (p->ainsn.boostable == 1 && !p->post_handler){ |
338 | /* Boost up -- we can execute copied instructions directly */ | 338 | /* Boost up -- we can execute copied instructions directly */ |
339 | reset_current_kprobe(); | 339 | reset_current_kprobe(); |
diff --git a/arch/i386/kernel/microcode.c b/arch/i386/kernel/microcode.c index 23f5984d0654..972346604f9d 100644 --- a/arch/i386/kernel/microcode.c +++ b/arch/i386/kernel/microcode.c | |||
@@ -703,7 +703,6 @@ static struct sysdev_driver mc_sysdev_driver = { | |||
703 | .resume = mc_sysdev_resume, | 703 | .resume = mc_sysdev_resume, |
704 | }; | 704 | }; |
705 | 705 | ||
706 | #ifdef CONFIG_HOTPLUG_CPU | ||
707 | static __cpuinit int | 706 | static __cpuinit int |
708 | mc_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu) | 707 | mc_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu) |
709 | { | 708 | { |
@@ -726,7 +725,6 @@ mc_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu) | |||
726 | static struct notifier_block mc_cpu_notifier = { | 725 | static struct notifier_block mc_cpu_notifier = { |
727 | .notifier_call = mc_cpu_callback, | 726 | .notifier_call = mc_cpu_callback, |
728 | }; | 727 | }; |
729 | #endif | ||
730 | 728 | ||
731 | static int __init microcode_init (void) | 729 | static int __init microcode_init (void) |
732 | { | 730 | { |
diff --git a/arch/i386/kernel/msr.c b/arch/i386/kernel/msr.c index fd45059c9084..1d1a56cae340 100644 --- a/arch/i386/kernel/msr.c +++ b/arch/i386/kernel/msr.c | |||
@@ -249,7 +249,6 @@ static int msr_device_create(int i) | |||
249 | return err; | 249 | return err; |
250 | } | 250 | } |
251 | 251 | ||
252 | #ifdef CONFIG_HOTPLUG_CPU | ||
253 | static int msr_class_cpu_callback(struct notifier_block *nfb, | 252 | static int msr_class_cpu_callback(struct notifier_block *nfb, |
254 | unsigned long action, void *hcpu) | 253 | unsigned long action, void *hcpu) |
255 | { | 254 | { |
@@ -270,7 +269,6 @@ static struct notifier_block __cpuinitdata msr_class_cpu_notifier = | |||
270 | { | 269 | { |
271 | .notifier_call = msr_class_cpu_callback, | 270 | .notifier_call = msr_class_cpu_callback, |
272 | }; | 271 | }; |
273 | #endif | ||
274 | 272 | ||
275 | static int __init msr_init(void) | 273 | static int __init msr_init(void) |
276 | { | 274 | { |
diff --git a/arch/i386/kernel/reboot.c b/arch/i386/kernel/reboot.c index 84278e0093a2..3514b4153f7f 100644 --- a/arch/i386/kernel/reboot.c +++ b/arch/i386/kernel/reboot.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/dmi.h> | 12 | #include <linux/dmi.h> |
13 | #include <linux/ctype.h> | 13 | #include <linux/ctype.h> |
14 | #include <linux/pm.h> | 14 | #include <linux/pm.h> |
15 | #include <linux/reboot.h> | ||
15 | #include <asm/uaccess.h> | 16 | #include <asm/uaccess.h> |
16 | #include <asm/apic.h> | 17 | #include <asm/apic.h> |
17 | #include <asm/desc.h> | 18 | #include <asm/desc.h> |
diff --git a/arch/i386/kernel/setup.c b/arch/i386/kernel/setup.c index 695d53fd14de..79df6e612dbd 100644 --- a/arch/i386/kernel/setup.c +++ b/arch/i386/kernel/setup.c | |||
@@ -448,8 +448,7 @@ void __init setup_bootmem_allocator(void) | |||
448 | if (LOADER_TYPE && INITRD_START) { | 448 | if (LOADER_TYPE && INITRD_START) { |
449 | if (INITRD_START + INITRD_SIZE <= (max_low_pfn << PAGE_SHIFT)) { | 449 | if (INITRD_START + INITRD_SIZE <= (max_low_pfn << PAGE_SHIFT)) { |
450 | reserve_bootmem(INITRD_START, INITRD_SIZE); | 450 | reserve_bootmem(INITRD_START, INITRD_SIZE); |
451 | initrd_start = | 451 | initrd_start = INITRD_START + PAGE_OFFSET; |
452 | INITRD_START ? INITRD_START + PAGE_OFFSET : 0; | ||
453 | initrd_end = initrd_start+INITRD_SIZE; | 452 | initrd_end = initrd_start+INITRD_SIZE; |
454 | } | 453 | } |
455 | else { | 454 | else { |
diff --git a/arch/i386/kernel/smp.c b/arch/i386/kernel/smp.c index 1b080ab8a49f..5285aff8367f 100644 --- a/arch/i386/kernel/smp.c +++ b/arch/i386/kernel/smp.c | |||
@@ -693,6 +693,10 @@ int smp_call_function_single(int cpu, void (*func) (void *info), void *info, | |||
693 | put_cpu(); | 693 | put_cpu(); |
694 | return -EBUSY; | 694 | return -EBUSY; |
695 | } | 695 | } |
696 | |||
697 | /* Can deadlock when called with interrupts disabled */ | ||
698 | WARN_ON(irqs_disabled()); | ||
699 | |||
696 | spin_lock_bh(&call_lock); | 700 | spin_lock_bh(&call_lock); |
697 | __smp_call_function_single(cpu, func, info, nonatomic, wait); | 701 | __smp_call_function_single(cpu, func, info, nonatomic, wait); |
698 | spin_unlock_bh(&call_lock); | 702 | spin_unlock_bh(&call_lock); |
diff --git a/arch/i386/kernel/smpboot.c b/arch/i386/kernel/smpboot.c index b4e6f32de453..4bf0e3c83b8b 100644 --- a/arch/i386/kernel/smpboot.c +++ b/arch/i386/kernel/smpboot.c | |||
@@ -1071,13 +1071,15 @@ void cpu_exit_clear(void) | |||
1071 | 1071 | ||
1072 | struct warm_boot_cpu_info { | 1072 | struct warm_boot_cpu_info { |
1073 | struct completion *complete; | 1073 | struct completion *complete; |
1074 | struct work_struct task; | ||
1074 | int apicid; | 1075 | int apicid; |
1075 | int cpu; | 1076 | int cpu; |
1076 | }; | 1077 | }; |
1077 | 1078 | ||
1078 | static void __cpuinit do_warm_boot_cpu(void *p) | 1079 | static void __cpuinit do_warm_boot_cpu(struct work_struct *work) |
1079 | { | 1080 | { |
1080 | struct warm_boot_cpu_info *info = p; | 1081 | struct warm_boot_cpu_info *info = |
1082 | container_of(work, struct warm_boot_cpu_info, task); | ||
1081 | do_boot_cpu(info->apicid, info->cpu); | 1083 | do_boot_cpu(info->apicid, info->cpu); |
1082 | complete(info->complete); | 1084 | complete(info->complete); |
1083 | } | 1085 | } |
@@ -1086,7 +1088,6 @@ static int __cpuinit __smp_prepare_cpu(int cpu) | |||
1086 | { | 1088 | { |
1087 | DECLARE_COMPLETION_ONSTACK(done); | 1089 | DECLARE_COMPLETION_ONSTACK(done); |
1088 | struct warm_boot_cpu_info info; | 1090 | struct warm_boot_cpu_info info; |
1089 | struct work_struct task; | ||
1090 | int apicid, ret; | 1091 | int apicid, ret; |
1091 | struct Xgt_desc_struct *cpu_gdt_descr = &per_cpu(cpu_gdt_descr, cpu); | 1092 | struct Xgt_desc_struct *cpu_gdt_descr = &per_cpu(cpu_gdt_descr, cpu); |
1092 | 1093 | ||
@@ -1111,7 +1112,7 @@ static int __cpuinit __smp_prepare_cpu(int cpu) | |||
1111 | info.complete = &done; | 1112 | info.complete = &done; |
1112 | info.apicid = apicid; | 1113 | info.apicid = apicid; |
1113 | info.cpu = cpu; | 1114 | info.cpu = cpu; |
1114 | INIT_WORK(&task, do_warm_boot_cpu, &info); | 1115 | INIT_WORK(&info.task, do_warm_boot_cpu); |
1115 | 1116 | ||
1116 | tsc_sync_disabled = 1; | 1117 | tsc_sync_disabled = 1; |
1117 | 1118 | ||
@@ -1119,7 +1120,7 @@ static int __cpuinit __smp_prepare_cpu(int cpu) | |||
1119 | clone_pgd_range(swapper_pg_dir, swapper_pg_dir + USER_PGD_PTRS, | 1120 | clone_pgd_range(swapper_pg_dir, swapper_pg_dir + USER_PGD_PTRS, |
1120 | KERNEL_PGD_PTRS); | 1121 | KERNEL_PGD_PTRS); |
1121 | flush_tlb_all(); | 1122 | flush_tlb_all(); |
1122 | schedule_work(&task); | 1123 | schedule_work(&info.task); |
1123 | wait_for_completion(&done); | 1124 | wait_for_completion(&done); |
1124 | 1125 | ||
1125 | tsc_sync_disabled = 0; | 1126 | tsc_sync_disabled = 0; |
diff --git a/arch/i386/kernel/sysenter.c b/arch/i386/kernel/sysenter.c index 92849c7def5a..7de9117b5a3a 100644 --- a/arch/i386/kernel/sysenter.c +++ b/arch/i386/kernel/sysenter.c | |||
@@ -136,7 +136,7 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int exstack) | |||
136 | goto up_fail; | 136 | goto up_fail; |
137 | } | 137 | } |
138 | 138 | ||
139 | vma = kmem_cache_zalloc(vm_area_cachep, SLAB_KERNEL); | 139 | vma = kmem_cache_zalloc(vm_area_cachep, GFP_KERNEL); |
140 | if (!vma) { | 140 | if (!vma) { |
141 | ret = -ENOMEM; | 141 | ret = -ENOMEM; |
142 | goto up_fail; | 142 | goto up_fail; |
diff --git a/arch/i386/kernel/traps.c b/arch/i386/kernel/traps.c index c447807e2a45..68de48e498ca 100644 --- a/arch/i386/kernel/traps.c +++ b/arch/i386/kernel/traps.c | |||
@@ -464,7 +464,7 @@ void die(const char * str, struct pt_regs * regs, long err) | |||
464 | u32 lock_owner; | 464 | u32 lock_owner; |
465 | int lock_owner_depth; | 465 | int lock_owner_depth; |
466 | } die = { | 466 | } die = { |
467 | .lock = SPIN_LOCK_UNLOCKED, | 467 | .lock = __SPIN_LOCK_UNLOCKED(die.lock), |
468 | .lock_owner = -1, | 468 | .lock_owner = -1, |
469 | .lock_owner_depth = 0 | 469 | .lock_owner_depth = 0 |
470 | }; | 470 | }; |
diff --git a/arch/i386/kernel/tsc.c b/arch/i386/kernel/tsc.c index 7f22e03253e2..1bbe45dca7a0 100644 --- a/arch/i386/kernel/tsc.c +++ b/arch/i386/kernel/tsc.c | |||
@@ -216,7 +216,7 @@ static unsigned int cpufreq_delayed_issched = 0; | |||
216 | static unsigned int cpufreq_init = 0; | 216 | static unsigned int cpufreq_init = 0; |
217 | static struct work_struct cpufreq_delayed_get_work; | 217 | static struct work_struct cpufreq_delayed_get_work; |
218 | 218 | ||
219 | static void handle_cpufreq_delayed_get(void *v) | 219 | static void handle_cpufreq_delayed_get(struct work_struct *work) |
220 | { | 220 | { |
221 | unsigned int cpu; | 221 | unsigned int cpu; |
222 | 222 | ||
@@ -305,7 +305,7 @@ static int __init cpufreq_tsc(void) | |||
305 | { | 305 | { |
306 | int ret; | 306 | int ret; |
307 | 307 | ||
308 | INIT_WORK(&cpufreq_delayed_get_work, handle_cpufreq_delayed_get, NULL); | 308 | INIT_WORK(&cpufreq_delayed_get_work, handle_cpufreq_delayed_get); |
309 | ret = cpufreq_register_notifier(&time_cpufreq_notifier_block, | 309 | ret = cpufreq_register_notifier(&time_cpufreq_notifier_block, |
310 | CPUFREQ_TRANSITION_NOTIFIER); | 310 | CPUFREQ_TRANSITION_NOTIFIER); |
311 | if (!ret) | 311 | if (!ret) |