Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
5a16eff8
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5a16eff8
编写于
8月 24, 2007
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
差异文件
Pull bugzilla-1641 into release branch
上级
2e0f4c7b
61ec7567
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
25 addition
and
25 deletion
+25
-25
Documentation/kernel-parameters.txt
Documentation/kernel-parameters.txt
+6
-9
arch/i386/kernel/io_apic.c
arch/i386/kernel/io_apic.c
+0
-8
arch/x86_64/kernel/io_apic.c
arch/x86_64/kernel/io_apic.c
+3
-5
include/asm-i386/io_apic.h
include/asm-i386/io_apic.h
+0
-1
include/asm-x86_64/io_apic.h
include/asm-x86_64/io_apic.h
+6
-0
init/main.c
init/main.c
+10
-2
未找到文件。
Documentation/kernel-parameters.txt
浏览文件 @
5a16eff8
...
...
@@ -952,14 +952,10 @@ and is between 256 and 4096 characters. It is defined in the file
Format: <1-256>
maxcpus= [SMP] Maximum number of processors that an SMP kernel
should make use of.
Using "nosmp" or "maxcpus=0" will disable SMP
entirely (the MPS table probe still happens, though).
A command-line option of "maxcpus=<NUM>", where <NUM>
is an integer greater than 0, limits the maximum number
of CPUs activated in SMP mode to <NUM>.
Using "maxcpus=1" on an SMP kernel is the trivial
case of an SMP kernel with only one CPU.
should make use of. maxcpus=n : n >= 0 limits the
kernel to using 'n' processors. n=0 is a special case,
it is equivalent to "nosmp", which also disables
the IO APIC.
max_addr=[KMG] [KNL,BOOT,ia64] All physical memory greater than or
equal to this physical address is ignored.
...
...
@@ -1184,7 +1180,8 @@ and is between 256 and 4096 characters. It is defined in the file
nosep [BUGS=X86-32] Disables x86 SYSENTER/SYSEXIT support.
nosmp [SMP] Tells an SMP kernel to act as a UP kernel.
nosmp [SMP] Tells an SMP kernel to act as a UP kernel,
and disable the IO APIC. legacy for "maxcpus=0".
nosoftlockup [KNL] Disable the soft-lockup detector.
...
...
arch/i386/kernel/io_apic.c
浏览文件 @
5a16eff8
...
...
@@ -754,14 +754,6 @@ static int pirq_entries [MAX_PIRQS];
static
int
pirqs_enabled
;
int
skip_ioapic_setup
;
static
int
__init
ioapic_setup
(
char
*
str
)
{
skip_ioapic_setup
=
1
;
return
1
;
}
__setup
(
"noapic"
,
ioapic_setup
);
static
int
__init
ioapic_pirq_setup
(
char
*
str
)
{
int
i
,
max
;
...
...
arch/x86_64/kernel/io_apic.c
浏览文件 @
5a16eff8
...
...
@@ -397,14 +397,12 @@ static void clear_IO_APIC (void)
int
skip_ioapic_setup
;
int
ioapic_force
;
/* dummy parsing: see setup.c */
static
int
__init
disable_ioapic_setup
(
char
*
str
)
static
int
__init
parse_noapic
(
char
*
str
)
{
skip_ioapic_setup
=
1
;
disable_ioapic_setup
()
;
return
0
;
}
early_param
(
"noapic"
,
disable_ioapic_setup
);
early_param
(
"noapic"
,
parse_noapic
);
/* Actually the next is obsolete, but keep it for paranoid reasons -AK */
static
int
__init
disable_timer_pin_setup
(
char
*
arg
)
...
...
include/asm-i386/io_apic.h
浏览文件 @
5a16eff8
...
...
@@ -150,7 +150,6 @@ extern int (*ioapic_renumber_irq)(int ioapic, int irq);
#else
/* !CONFIG_X86_IO_APIC */
#define io_apic_assign_pci_irqs 0
static
inline
void
disable_ioapic_setup
(
void
)
{
}
#endif
#endif
include/asm-x86_64/io_apic.h
浏览文件 @
5a16eff8
...
...
@@ -109,6 +109,12 @@ extern int mpc_default_type;
/* 1 if "noapic" boot option passed */
extern
int
skip_ioapic_setup
;
static
inline
void
disable_ioapic_setup
(
void
)
{
skip_ioapic_setup
=
1
;
}
/*
* If we use the IO-APIC for IRQ routing, disable automatic
* assignment of PCI IRQ's.
...
...
init/main.c
浏览文件 @
5a16eff8
...
...
@@ -146,9 +146,14 @@ static unsigned int __initdata max_cpus = NR_CPUS;
* greater than 0, limits the maximum number of CPUs activated in
* SMP mode to <NUM>.
*/
#ifndef CONFIG_X86_IO_APIC
static
inline
void
disable_ioapic_setup
(
void
)
{};
#endif
static
int
__init
nosmp
(
char
*
str
)
{
max_cpus
=
0
;
disable_ioapic_setup
();
return
0
;
}
...
...
@@ -157,10 +162,13 @@ early_param("nosmp", nosmp);
static
int
__init
maxcpus
(
char
*
str
)
{
get_option
(
&
str
,
&
max_cpus
);
return
1
;
if
(
max_cpus
==
0
)
disable_ioapic_setup
();
return
0
;
}
__setup
(
"maxcpus="
,
maxcpus
);
early_param
(
"maxcpus="
,
maxcpus
);
#else
#define max_cpus NR_CPUS
#endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录