File tree Expand file tree Collapse file tree 7 files changed +23
-29
lines changed Expand file tree Collapse file tree 7 files changed +23
-29
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ void __init hv_vtl_init_platform(void)
34
34
/* Avoid searching for BIOS MP tables */
35
35
x86_init .mpparse .find_mptable = x86_init_noop ;
36
36
x86_init .mpparse .early_parse_smp_cfg = x86_init_noop ;
37
- x86_init .mpparse .parse_smp_cfg = x86_init_noop ;
38
37
39
38
x86_platform .get_wallclock = get_rtc_noop ;
40
39
x86_platform .set_wallclock = set_rtc_noop ;
Original file line number Diff line number Diff line change @@ -23,19 +23,14 @@ extern int of_ioapic;
23
23
extern u64 initial_dtb ;
24
24
extern void add_dtb (u64 data );
25
25
void x86_of_pci_init (void );
26
- void x86_dtb_parse_smp_config (void );
26
+ void x86_flattree_get_config (void );
27
27
#else
28
28
static inline void add_dtb (u64 data ) { }
29
29
static inline void x86_of_pci_init (void ) { }
30
- static inline void x86_dtb_parse_smp_config (void ) { }
30
+ static inline void x86_flattree_get_config (void ) { }
31
31
#define of_ioapic 0
32
32
#endif
33
33
34
- #ifdef CONFIG_OF_EARLY_FLATTREE
35
- void x86_flattree_get_config (void );
36
- #else
37
- static inline void x86_flattree_get_config (void ) { }
38
- #endif
39
34
extern char cmd_line [COMMAND_LINE_SIZE ];
40
35
41
36
#endif /* __ASSEMBLY__ */
Original file line number Diff line number Diff line change 24
24
#include <asm/pci_x86.h>
25
25
#include <asm/setup.h>
26
26
#include <asm/i8259.h>
27
+ #include <asm/numa.h>
27
28
#include <asm/prom.h>
28
29
29
30
__initdata u64 initial_dtb ;
@@ -137,6 +138,7 @@ static void __init dtb_cpu_setup(void)
137
138
continue ;
138
139
}
139
140
topology_register_apic (apic_id , CPU_ACPIID_INVALID , true);
141
+ set_apicid_to_node (apic_id , of_node_to_nid (dn ));
140
142
}
141
143
}
142
144
@@ -277,9 +279,18 @@ static void __init dtb_apic_setup(void)
277
279
dtb_ioapic_setup ();
278
280
}
279
281
280
- #ifdef CONFIG_OF_EARLY_FLATTREE
282
+ static void __init x86_dtb_parse_smp_config (void )
283
+ {
284
+ if (!of_have_populated_dt ())
285
+ return ;
286
+
287
+ dtb_setup_hpet ();
288
+ dtb_apic_setup ();
289
+ }
290
+
281
291
void __init x86_flattree_get_config (void )
282
292
{
293
+ #ifdef CONFIG_OF_EARLY_FLATTREE
283
294
u32 size , map_len ;
284
295
void * dt ;
285
296
@@ -301,14 +312,7 @@ void __init x86_flattree_get_config(void)
301
312
302
313
if (initial_dtb )
303
314
early_memunmap (dt , map_len );
304
- }
305
315
#endif
306
-
307
- void __init x86_dtb_parse_smp_config (void )
308
- {
309
- if (!of_have_populated_dt ())
310
- return ;
311
-
312
- dtb_setup_hpet ();
313
- dtb_apic_setup ();
316
+ if (of_have_populated_dt ())
317
+ x86_init .mpparse .parse_smp_cfg = x86_dtb_parse_smp_config ;
314
318
}
Original file line number Diff line number Diff line change @@ -139,7 +139,6 @@ void __init x86_ce4100_early_setup(void)
139
139
x86_init .resources .probe_roms = x86_init_noop ;
140
140
x86_init .mpparse .find_mptable = x86_init_noop ;
141
141
x86_init .mpparse .early_parse_smp_cfg = x86_init_noop ;
142
- x86_init .mpparse .parse_smp_cfg = x86_dtb_parse_smp_config ;
143
142
x86_init .pci .init = ce4100_pci_init ;
144
143
x86_init .pci .init_irq = sdv_pci_init ;
145
144
Original file line number Diff line number Diff line change @@ -62,19 +62,18 @@ static int iris_probe(struct platform_device *pdev)
62
62
return 0 ;
63
63
}
64
64
65
- static int iris_remove (struct platform_device * pdev )
65
+ static void iris_remove (struct platform_device * pdev )
66
66
{
67
67
pm_power_off = old_pm_power_off ;
68
68
printk (KERN_INFO "Iris power_off handler uninstalled.\n" );
69
- return 0 ;
70
69
}
71
70
72
71
static struct platform_driver iris_driver = {
73
72
.driver = {
74
73
.name = "iris" ,
75
74
},
76
75
.probe = iris_probe ,
77
- .remove = iris_remove ,
76
+ .remove_new = iris_remove ,
78
77
};
79
78
80
79
static struct resource iris_resources [] = {
Original file line number Diff line number Diff line change @@ -144,31 +144,30 @@ static int xo1_pm_probe(struct platform_device *pdev)
144
144
return 0 ;
145
145
}
146
146
147
- static int xo1_pm_remove (struct platform_device * pdev )
147
+ static void xo1_pm_remove (struct platform_device * pdev )
148
148
{
149
149
if (strcmp (pdev -> name , "cs5535-pms" ) == 0 )
150
150
pms_base = 0 ;
151
151
else if (strcmp (pdev -> name , "olpc-xo1-pm-acpi" ) == 0 )
152
152
acpi_base = 0 ;
153
153
154
154
pm_power_off = NULL ;
155
- return 0 ;
156
155
}
157
156
158
157
static struct platform_driver cs5535_pms_driver = {
159
158
.driver = {
160
159
.name = "cs5535-pms" ,
161
160
},
162
161
.probe = xo1_pm_probe ,
163
- .remove = xo1_pm_remove ,
162
+ .remove_new = xo1_pm_remove ,
164
163
};
165
164
166
165
static struct platform_driver cs5535_acpi_driver = {
167
166
.driver = {
168
167
.name = "olpc-xo1-pm-acpi" ,
169
168
},
170
169
.probe = xo1_pm_probe ,
171
- .remove = xo1_pm_remove ,
170
+ .remove_new = xo1_pm_remove ,
172
171
};
173
172
174
173
static int __init xo1_pm_init (void )
Original file line number Diff line number Diff line change @@ -598,7 +598,7 @@ static int xo1_sci_probe(struct platform_device *pdev)
598
598
return r ;
599
599
}
600
600
601
- static int xo1_sci_remove (struct platform_device * pdev )
601
+ static void xo1_sci_remove (struct platform_device * pdev )
602
602
{
603
603
free_irq (sci_irq , pdev );
604
604
cancel_work_sync (& sci_work );
@@ -608,7 +608,6 @@ static int xo1_sci_remove(struct platform_device *pdev)
608
608
free_ebook_switch ();
609
609
free_power_button ();
610
610
acpi_base = 0 ;
611
- return 0 ;
612
611
}
613
612
614
613
static struct platform_driver xo1_sci_driver = {
@@ -617,7 +616,7 @@ static struct platform_driver xo1_sci_driver = {
617
616
.dev_groups = lid_groups ,
618
617
},
619
618
.probe = xo1_sci_probe ,
620
- .remove = xo1_sci_remove ,
619
+ .remove_new = xo1_sci_remove ,
621
620
.suspend = xo1_sci_suspend ,
622
621
.resume = xo1_sci_resume ,
623
622
};
You can’t perform that action at this time.
0 commit comments