Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
b86db40e
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
161
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看板
提交
b86db40e
编写于
3月 04, 2018
作者:
H
Helge Deller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
parisc: Move various functions and strings to init section
Signed-off-by:
N
Helge Deller
<
deller@gmx.de
>
上级
d5b59a71
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
17 deletion
+17
-17
arch/parisc/kernel/drivers.c
arch/parisc/kernel/drivers.c
+11
-11
arch/parisc/kernel/hardware.c
arch/parisc/kernel/hardware.c
+6
-6
未找到文件。
arch/parisc/kernel/drivers.c
浏览文件 @
b86db40e
...
...
@@ -135,7 +135,7 @@ static int parisc_driver_probe(struct device *dev)
return
rc
;
}
static
int
parisc_driver_remove
(
struct
device
*
dev
)
static
int
__exit
parisc_driver_remove
(
struct
device
*
dev
)
{
struct
parisc_device
*
pa_dev
=
to_parisc_device
(
dev
);
struct
parisc_driver
*
pa_drv
=
to_parisc_driver
(
dev
->
driver
);
...
...
@@ -205,7 +205,7 @@ static int match_and_count(struct device * dev, void * data)
* Use by IOMMU support to "guess" the right size IOPdir.
* Formula is something like memsize/(num_iommu * entry_size).
*/
int
count_parisc_driver
(
struct
parisc_driver
*
driver
)
int
__init
count_parisc_driver
(
struct
parisc_driver
*
driver
)
{
struct
match_count
m
=
{
.
driver
=
driver
,
...
...
@@ -268,7 +268,7 @@ static struct parisc_device *find_device_by_addr(unsigned long hpa)
* Walks up the device tree looking for a device of the specified type.
* If it finds it, it returns it. If not, it returns NULL.
*/
const
struct
parisc_device
*
const
struct
parisc_device
*
__init
find_pa_parent_type
(
const
struct
parisc_device
*
padev
,
int
type
)
{
const
struct
device
*
dev
=
&
padev
->
dev
;
...
...
@@ -397,7 +397,7 @@ static void setup_bus_id(struct parisc_device *padev)
dev_set_name
(
&
padev
->
dev
,
name
);
}
struct
parisc_device
*
create_tree_node
(
char
id
,
struct
device
*
parent
)
struct
parisc_device
*
__init
create_tree_node
(
char
id
,
struct
device
*
parent
)
{
struct
parisc_device
*
dev
=
kzalloc
(
sizeof
(
*
dev
),
GFP_KERNEL
);
if
(
!
dev
)
...
...
@@ -471,7 +471,7 @@ static struct parisc_device *create_parisc_device(struct hardware_path *modpath)
return
alloc_tree_node
(
parent
,
modpath
->
mod
);
}
struct
parisc_device
*
struct
parisc_device
*
__init
alloc_pa_dev
(
unsigned
long
hpa
,
struct
hardware_path
*
mod_path
)
{
int
status
;
...
...
@@ -609,7 +609,7 @@ struct bus_type parisc_bus_type = {
.
uevent
=
parisc_uevent
,
.
dev_groups
=
parisc_device_groups
,
.
probe
=
parisc_driver_probe
,
.
remove
=
parisc_driver_remove
,
.
remove
=
__exit_p
(
parisc_driver_remove
)
,
};
/**
...
...
@@ -619,7 +619,7 @@ struct bus_type parisc_bus_type = {
* Search the driver list for a driver that is willing to manage
* this device.
*/
int
register_parisc_device
(
struct
parisc_device
*
dev
)
int
__init
register_parisc_device
(
struct
parisc_device
*
dev
)
{
if
(
!
dev
)
return
0
;
...
...
@@ -791,7 +791,7 @@ EXPORT_SYMBOL(device_to_hwpath);
static
void
walk_native_bus
(
unsigned
long
io_io_low
,
unsigned
long
io_io_high
,
struct
device
*
parent
);
void
walk_lower_bus
(
struct
parisc_device
*
dev
)
static
void
walk_lower_bus
(
struct
parisc_device
*
dev
)
{
unsigned
long
io_io_low
,
io_io_high
;
...
...
@@ -857,7 +857,7 @@ static void walk_native_bus(unsigned long io_io_low, unsigned long io_io_high,
* PDC doesn't tell us about all devices in the system. This routine
* finds devices connected to the central bus.
*/
void
walk_central_bus
(
void
)
void
__init
walk_central_bus
(
void
)
{
walk_native_bus
(
CENTRAL_BUS_ADDR
,
CENTRAL_BUS_ADDR
+
(
MAX_NATIVE_DEVICES
*
NATIVE_DEVICE_OFFSET
),
...
...
@@ -886,7 +886,7 @@ static void print_parisc_device(struct parisc_device *dev)
/**
* init_parisc_bus - Some preparation to be done before inventory
*/
void
init_parisc_bus
(
void
)
void
__init
init_parisc_bus
(
void
)
{
if
(
bus_register
(
&
parisc_bus_type
))
panic
(
"Could not register PA-RISC bus type
\n
"
);
...
...
@@ -908,7 +908,7 @@ static int print_one_device(struct device * dev, void * data)
/**
* print_parisc_devices - Print out a list of devices found in this system
*/
void
print_parisc_devices
(
void
)
void
__init
print_parisc_devices
(
void
)
{
for_each_padev
(
print_one_device
,
NULL
);
}
arch/parisc/kernel/hardware.c
浏览文件 @
b86db40e
...
...
@@ -41,7 +41,7 @@
* are guessed. If you know the correct name, please let us know.
*/
static
struct
hp_hardware
hp_hardware_list
[]
=
{
static
struct
hp_hardware
hp_hardware_list
[]
__initdata
=
{
{
HPHW_NPROC
,
0x01
,
0x4
,
0x0
,
"Indigo (840, 930)"
},
{
HPHW_NPROC
,
0x8
,
0x4
,
0x01
,
"Firefox(825,925)"
},
{
HPHW_NPROC
,
0xA
,
0x4
,
0x01
,
"Top Gun (835,834,935,635)"
},
...
...
@@ -1238,7 +1238,7 @@ static struct hp_cpu_type_mask {
unsigned
short
model
;
unsigned
short
mask
;
enum
cpu_type
cpu
;
}
hp_cpu_type_mask_list
[]
=
{
}
hp_cpu_type_mask_list
[]
__initdata
=
{
{
0x0000
,
0x0ff0
,
pcx
},
/* 0x0000 - 0x000f */
{
0x0048
,
0x0ff0
,
pcxl
},
/* 0x0040 - 0x004f */
...
...
@@ -1325,17 +1325,17 @@ const char * const cpu_name_version[][2] = {
[
pcxt
]
=
{
"PA7100 (PCX-T)"
,
"1.1b"
},
[
pcxt_
]
=
{
"PA7200 (PCX-T')"
,
"1.1c"
},
[
pcxl
]
=
{
"PA7100LC (PCX-L)"
,
"1.1d"
},
[
pcxl2
]
=
{
"PA7300LC (PCX-L2)"
,
"1.1e"
},
[
pcxl2
]
=
{
"PA7300LC (PCX-L2)"
,
"1.1e"
},
[
pcxu
]
=
{
"PA8000 (PCX-U)"
,
"2.0"
},
[
pcxu_
]
=
{
"PA8200 (PCX-U+)"
,
"2.0"
},
[
pcxw
]
=
{
"PA8500 (PCX-W)"
,
"2.0"
},
[
pcxw_
]
=
{
"PA8600 (PCX-W+)"
,
"2.0"
},
[
pcxw2
]
=
{
"PA8700 (PCX-W2)"
,
"2.0"
},
[
mako
]
=
{
"PA8800 (Mako)"
,
"2.0"
},
[
mako2
]
=
{
"PA8900 (Shortfin)"
,
"2.0"
}
[
mako2
]
=
{
"PA8900 (Shortfin)"
,
"2.0"
}
};
const
char
*
parisc_hardware_description
(
struct
parisc_device_id
*
id
)
const
char
*
__init
parisc_hardware_description
(
struct
parisc_device_id
*
id
)
{
struct
hp_hardware
*
listptr
;
...
...
@@ -1373,7 +1373,7 @@ const char *parisc_hardware_description(struct parisc_device_id *id)
/* Interpret hversion (ret[0]) from PDC_MODEL(4)/PDC_MODEL_INFO(0) */
enum
cpu_type
enum
cpu_type
__init
parisc_get_cpu_type
(
unsigned
long
hversion
)
{
struct
hp_cpu_type_mask
*
ptr
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录