mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
[PATCH] s390: additional_cpus parameter
Introduce additional_cpus command line option. By default no additional cpu can be attached to the system anymore. Only the cpus present at IPL time can be switched on/off. If it is desired that additional cpus can be attached to the system the maximum number of additional cpus needs to be specified with this option. This change is necessary in order to limit the waste of per_cpu data structures. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
1fca251f36
commit
255acee706
4 changed files with 49 additions and 23 deletions
|
|
@ -31,6 +31,7 @@ typedef struct
|
|||
__u16 cpu;
|
||||
} sigp_info;
|
||||
|
||||
extern void smp_setup_cpu_possible_map(void);
|
||||
extern int smp_call_function_on(void (*func) (void *info), void *info,
|
||||
int nonatomic, int wait, int cpu);
|
||||
#define NO_PROC_ID 0xFF /* No processor magic marker */
|
||||
|
|
@ -104,6 +105,7 @@ smp_call_function_on(void (*func) (void *info), void *info,
|
|||
#define smp_cpu_not_running(cpu) 1
|
||||
#define smp_get_cpu(cpu) ({ 0; })
|
||||
#define smp_put_cpu(cpu) ({ 0; })
|
||||
#define smp_setup_cpu_possible_map()
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue