Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
d53e2f28
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d53e2f28
编写于
1月 28, 2009
作者:
I
Ingo Molnar
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
x86, smp: remove mach_ipi.h
Move mach_ipi.h definitions into genapic.h. Signed-off-by:
N
Ingo Molnar
<
mingo@elte.hu
>
上级
9f4187f0
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
68 addition
and
96 deletion
+68
-96
arch/x86/include/asm/genapic.h
arch/x86/include/asm/genapic.h
+1
-0
arch/x86/include/asm/ipi.h
arch/x86/include/asm/ipi.h
+59
-2
arch/x86/include/asm/mach-default/mach_ipi.h
arch/x86/include/asm/mach-default/mach_ipi.h
+0
-58
arch/x86/include/asm/mach-generic/gpio.h
arch/x86/include/asm/mach-generic/gpio.h
+0
-15
arch/x86/include/asm/mach-generic/mach_ipi.h
arch/x86/include/asm/mach-generic/mach_ipi.h
+0
-6
arch/x86/include/asm/mach-generic/mach_wakecpu.h
arch/x86/include/asm/mach-generic/mach_wakecpu.h
+0
-4
arch/x86/kernel/apic.c
arch/x86/kernel/apic.c
+1
-1
arch/x86/kernel/crash.c
arch/x86/kernel/crash.c
+1
-1
arch/x86/kernel/io_apic.c
arch/x86/kernel/io_apic.c
+0
-1
arch/x86/kernel/ipi.c
arch/x86/kernel/ipi.c
+0
-1
arch/x86/kernel/kgdb.c
arch/x86/kernel/kgdb.c
+1
-1
arch/x86/kernel/reboot.c
arch/x86/kernel/reboot.c
+1
-1
arch/x86/kernel/smp.c
arch/x86/kernel/smp.c
+0
-1
arch/x86/kernel/visws_quirks.c
arch/x86/kernel/visws_quirks.c
+1
-1
arch/x86/mach-default/setup.c
arch/x86/mach-default/setup.c
+1
-1
arch/x86/mach-generic/default.c
arch/x86/mach-generic/default.c
+1
-1
arch/x86/mm/tlb.c
arch/x86/mm/tlb.c
+1
-1
未找到文件。
arch/x86/include/asm/genapic.h
浏览文件 @
d53e2f28
...
...
@@ -259,4 +259,5 @@ static inline physid_mask_t default_apicid_to_cpu_present(int phys_apicid)
}
#endif
/* CONFIG_X86_LOCAL_APIC */
#endif
/* _ASM_X86_GENAPIC_64_H */
arch/x86/include/asm/ipi.h
浏览文件 @
d53e2f28
#ifndef _ASM_X86_IPI_H
#define _ASM_X86_IPI_H
#ifdef CONFIG_X86_LOCAL_APIC
/*
* Copyright 2004 James Cleverdon, IBM.
* Subject to the GNU Public License, v.2
...
...
@@ -56,8 +58,7 @@ static inline void __xapic_wait_icr_idle(void)
}
static
inline
void
__default_send_IPI_shortcut
(
unsigned
int
shortcut
,
int
vector
,
unsigned
int
dest
)
__default_send_IPI_shortcut
(
unsigned
int
shortcut
,
int
vector
,
unsigned
int
dest
)
{
/*
* Subtle. In the case of the 'never do double writes' workaround
...
...
@@ -156,4 +157,60 @@ default_send_IPI_mask_allbutself(const struct cpumask *mask, int vector)
local_irq_restore
(
flags
);
}
/* Avoid include hell */
#define NMI_VECTOR 0x02
void
default_send_IPI_mask_bitmask
(
const
struct
cpumask
*
mask
,
int
vector
);
void
default_send_IPI_mask_allbutself
(
const
struct
cpumask
*
mask
,
int
vector
);
extern
int
no_broadcast
;
#ifdef CONFIG_X86_64
#include <asm/genapic.h>
#else
static
inline
void
default_send_IPI_mask
(
const
struct
cpumask
*
mask
,
int
vector
)
{
default_send_IPI_mask_bitmask
(
mask
,
vector
);
}
void
default_send_IPI_mask_allbutself
(
const
struct
cpumask
*
mask
,
int
vector
);
#endif
static
inline
void
__default_local_send_IPI_allbutself
(
int
vector
)
{
if
(
no_broadcast
||
vector
==
NMI_VECTOR
)
apic
->
send_IPI_mask_allbutself
(
cpu_online_mask
,
vector
);
else
__default_send_IPI_shortcut
(
APIC_DEST_ALLBUT
,
vector
,
apic
->
dest_logical
);
}
static
inline
void
__default_local_send_IPI_all
(
int
vector
)
{
if
(
no_broadcast
||
vector
==
NMI_VECTOR
)
apic
->
send_IPI_mask
(
cpu_online_mask
,
vector
);
else
__default_send_IPI_shortcut
(
APIC_DEST_ALLINC
,
vector
,
apic
->
dest_logical
);
}
#ifdef CONFIG_X86_32
static
inline
void
default_send_IPI_allbutself
(
int
vector
)
{
/*
* if there are no other CPUs in the system then we get an APIC send
* error if we try to broadcast, thus avoid sending IPIs in this case.
*/
if
(
!
(
num_online_cpus
()
>
1
))
return
;
__default_local_send_IPI_allbutself
(
vector
);
}
static
inline
void
default_send_IPI_all
(
int
vector
)
{
__default_local_send_IPI_all
(
vector
);
}
#endif
#endif
#endif
/* _ASM_X86_IPI_H */
arch/x86/include/asm/mach-default/mach_ipi.h
已删除
100644 → 0
浏览文件 @
9f4187f0
#ifndef _ASM_X86_MACH_DEFAULT_MACH_IPI_H
#define _ASM_X86_MACH_DEFAULT_MACH_IPI_H
/* Avoid include hell */
#define NMI_VECTOR 0x02
void
default_send_IPI_mask_bitmask
(
const
struct
cpumask
*
mask
,
int
vector
);
void
default_send_IPI_mask_allbutself
(
const
struct
cpumask
*
mask
,
int
vector
);
void
__default_send_IPI_shortcut
(
unsigned
int
shortcut
,
int
vector
);
extern
int
no_broadcast
;
#ifdef CONFIG_X86_64
#include <asm/genapic.h>
#else
static
inline
void
default_send_IPI_mask
(
const
struct
cpumask
*
mask
,
int
vector
)
{
default_send_IPI_mask_bitmask
(
mask
,
vector
);
}
void
default_send_IPI_mask_allbutself
(
const
struct
cpumask
*
mask
,
int
vector
);
#endif
static
inline
void
__default_local_send_IPI_allbutself
(
int
vector
)
{
if
(
no_broadcast
||
vector
==
NMI_VECTOR
)
apic
->
send_IPI_mask_allbutself
(
cpu_online_mask
,
vector
);
else
__default_send_IPI_shortcut
(
APIC_DEST_ALLBUT
,
vector
);
}
static
inline
void
__default_local_send_IPI_all
(
int
vector
)
{
if
(
no_broadcast
||
vector
==
NMI_VECTOR
)
apic
->
send_IPI_mask
(
cpu_online_mask
,
vector
);
else
__default_send_IPI_shortcut
(
APIC_DEST_ALLINC
,
vector
);
}
#ifdef CONFIG_X86_32
static
inline
void
default_send_IPI_allbutself
(
int
vector
)
{
/*
* if there are no other CPUs in the system then we get an APIC send
* error if we try to broadcast, thus avoid sending IPIs in this case.
*/
if
(
!
(
num_online_cpus
()
>
1
))
return
;
__default_local_send_IPI_allbutself
(
vector
);
}
static
inline
void
default_send_IPI_all
(
int
vector
)
{
__default_local_send_IPI_all
(
vector
);
}
#endif
#endif
/* _ASM_X86_MACH_DEFAULT_MACH_IPI_H */
arch/x86/include/asm/mach-generic/gpio.h
已删除
100644 → 0
浏览文件 @
9f4187f0
#ifndef _ASM_X86_MACH_GENERIC_GPIO_H
#define _ASM_X86_MACH_GENERIC_GPIO_H
int
gpio_request
(
unsigned
gpio
,
const
char
*
label
);
void
gpio_free
(
unsigned
gpio
);
int
gpio_direction_input
(
unsigned
gpio
);
int
gpio_direction_output
(
unsigned
gpio
,
int
value
);
int
gpio_get_value
(
unsigned
gpio
);
void
gpio_set_value
(
unsigned
gpio
,
int
value
);
int
gpio_to_irq
(
unsigned
gpio
);
int
irq_to_gpio
(
unsigned
irq
);
#include <asm-generic/gpio.h>
/* cansleep wrappers */
#endif
/* _ASM_X86_MACH_GENERIC_GPIO_H */
arch/x86/include/asm/mach-generic/mach_ipi.h
已删除
100644 → 0
浏览文件 @
9f4187f0
#ifndef _ASM_X86_MACH_GENERIC_MACH_IPI_H
#define _ASM_X86_MACH_GENERIC_MACH_IPI_H
#include <asm/genapic.h>
#endif
/* _ASM_X86_MACH_GENERIC_MACH_IPI_H */
arch/x86/include/asm/mach-generic/mach_wakecpu.h
已删除
100644 → 0
浏览文件 @
9f4187f0
#ifndef _ASM_X86_MACH_GENERIC_MACH_WAKECPU_H
#define _ASM_X86_MACH_GENERIC_MACH_WAKECPU_H
#endif
/* _ASM_X86_MACH_GENERIC_MACH_APIC_H */
arch/x86/kernel/apic.c
浏览文件 @
d53e2f28
...
...
@@ -49,7 +49,7 @@
#include <asm/i8259.h>
#include <asm/smp.h>
#include <
mach_ipi
.h>
#include <
asm/genapic
.h>
/*
* Sanity check
...
...
arch/x86/kernel/crash.c
浏览文件 @
d53e2f28
...
...
@@ -28,7 +28,7 @@
#include <asm/reboot.h>
#include <asm/virtext.h>
#include <
mach_ipi
.h>
#include <
asm/genapic
.h>
#if defined(CONFIG_SMP) && defined(CONFIG_X86_LOCAL_APIC)
...
...
arch/x86/kernel/io_apic.c
浏览文件 @
d53e2f28
...
...
@@ -62,7 +62,6 @@
#include <asm/uv/uv_hub.h>
#include <asm/uv/uv_irq.h>
#include <mach_ipi.h>
#include <asm/genapic.h>
#define __apicdebuginit(type) static type __init
...
...
arch/x86/kernel/ipi.c
浏览文件 @
d53e2f28
...
...
@@ -20,7 +20,6 @@
#ifdef CONFIG_X86_32
#include <asm/genapic.h>
#include <mach_ipi.h>
/*
* the following functions deal with sending IPIs between CPUs.
...
...
arch/x86/kernel/kgdb.c
浏览文件 @
d53e2f28
...
...
@@ -46,7 +46,7 @@
#include <asm/apicdef.h>
#include <asm/system.h>
#include <
mach_ipi
.h>
#include <
asm/genapic
.h>
/*
* Put the error code here just in case the user cares:
...
...
arch/x86/kernel/reboot.c
浏览文件 @
d53e2f28
...
...
@@ -24,7 +24,7 @@
# include <asm/iommu.h>
#endif
#include <
mach_ipi
.h>
#include <
asm/genapic
.h>
/*
* Power off function, if any
...
...
arch/x86/kernel/smp.c
浏览文件 @
d53e2f28
...
...
@@ -26,7 +26,6 @@
#include <asm/tlbflush.h>
#include <asm/mmu_context.h>
#include <asm/proto.h>
#include <mach_ipi.h>
#include <asm/genapic.h>
/*
* Some notes on x86 processor bugs affecting SMP operation:
...
...
arch/x86/kernel/visws_quirks.c
浏览文件 @
d53e2f28
...
...
@@ -32,7 +32,7 @@
#include <asm/e820.h>
#include <asm/io.h>
#include <
mach_ipi
.h>
#include <
asm/genapic
.h>
#include <asm/genapic.h>
...
...
arch/x86/mach-default/setup.c
浏览文件 @
d53e2f28
...
...
@@ -10,7 +10,7 @@
#include <asm/e820.h>
#include <asm/setup.h>
#include <
mach_ipi
.h>
#include <
asm/genapic
.h>
#ifdef CONFIG_HOTPLUG_CPU
#define DEFAULT_SEND_IPI (1)
...
...
arch/x86/mach-generic/default.c
浏览文件 @
d53e2f28
...
...
@@ -13,7 +13,7 @@
#include <linux/smp.h>
#include <linux/init.h>
#include <asm/genapic.h>
#include <asm/
mach-default/mach_
ipi.h>
#include <asm/ipi.h>
static
void
default_vector_allocation_domain
(
int
cpu
,
struct
cpumask
*
retmask
)
{
...
...
arch/x86/mm/tlb.c
浏览文件 @
d53e2f28
...
...
@@ -14,7 +14,7 @@
DEFINE_PER_CPU_SHARED_ALIGNED
(
struct
tlb_state
,
cpu_tlbstate
)
=
{
&
init_mm
,
0
,
};
#include <
mach_ipi
.h>
#include <
asm/genapic
.h>
/*
* Smarter SMP flushing macros.
* c/o Linus Torvalds.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录