Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
1c9c20f6
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1c9c20f6
编写于
11月 25, 2011
作者:
C
Cong Wang
提交者:
Cong Wang
3月 20, 2012
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm: remove the second argument of k[un]map_atomic()
Signed-off-by:
N
Cong Wang
<
amwang@redhat.com
>
上级
4e5df7ca
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
15 addition
and
15 deletion
+15
-15
drivers/gpu/drm/drm_cache.c
drivers/gpu/drm/drm_cache.c
+4
-4
drivers/gpu/drm/ttm/ttm_tt.c
drivers/gpu/drm/ttm/ttm_tt.c
+8
-8
drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c
drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c
+3
-3
未找到文件。
drivers/gpu/drm/drm_cache.c
浏览文件 @
1c9c20f6
...
...
@@ -41,10 +41,10 @@ drm_clflush_page(struct page *page)
if
(
unlikely
(
page
==
NULL
))
return
;
page_virtual
=
kmap_atomic
(
page
,
KM_USER0
);
page_virtual
=
kmap_atomic
(
page
);
for
(
i
=
0
;
i
<
PAGE_SIZE
;
i
+=
boot_cpu_data
.
x86_clflush_size
)
clflush
(
page_virtual
+
i
);
kunmap_atomic
(
page_virtual
,
KM_USER0
);
kunmap_atomic
(
page_virtual
);
}
static
void
drm_cache_flush_clflush
(
struct
page
*
pages
[],
...
...
@@ -87,10 +87,10 @@ drm_clflush_pages(struct page *pages[], unsigned long num_pages)
if
(
unlikely
(
page
==
NULL
))
continue
;
page_virtual
=
kmap_atomic
(
page
,
KM_USER0
);
page_virtual
=
kmap_atomic
(
page
);
flush_dcache_range
((
unsigned
long
)
page_virtual
,
(
unsigned
long
)
page_virtual
+
PAGE_SIZE
);
kunmap_atomic
(
page_virtual
,
KM_USER0
);
kunmap_atomic
(
page_virtual
);
}
#else
printk
(
KERN_ERR
"Architecture has no drm_cache.c support
\n
"
);
...
...
drivers/gpu/drm/ttm/ttm_tt.c
浏览文件 @
1c9c20f6
...
...
@@ -309,11 +309,11 @@ int ttm_tt_swapin(struct ttm_tt *ttm)
goto
out_err
;
preempt_disable
();
from_virtual
=
kmap_atomic
(
from_page
,
KM_USER0
);
to_virtual
=
kmap_atomic
(
to_page
,
KM_USER1
);
from_virtual
=
kmap_atomic
(
from_page
);
to_virtual
=
kmap_atomic
(
to_page
);
memcpy
(
to_virtual
,
from_virtual
,
PAGE_SIZE
);
kunmap_atomic
(
to_virtual
,
KM_USER1
);
kunmap_atomic
(
from_virtual
,
KM_USER0
);
kunmap_atomic
(
to_virtual
);
kunmap_atomic
(
from_virtual
);
preempt_enable
();
page_cache_release
(
from_page
);
}
...
...
@@ -365,11 +365,11 @@ int ttm_tt_swapout(struct ttm_tt *ttm, struct file *persistent_swap_storage)
goto
out_err
;
}
preempt_disable
();
from_virtual
=
kmap_atomic
(
from_page
,
KM_USER0
);
to_virtual
=
kmap_atomic
(
to_page
,
KM_USER1
);
from_virtual
=
kmap_atomic
(
from_page
);
to_virtual
=
kmap_atomic
(
to_page
);
memcpy
(
to_virtual
,
from_virtual
,
PAGE_SIZE
);
kunmap_atomic
(
to_virtual
,
KM_USER1
);
kunmap_atomic
(
from_virtual
,
KM_USER0
);
kunmap_atomic
(
to_virtual
);
kunmap_atomic
(
from_virtual
);
preempt_enable
();
set_page_dirty
(
to_page
);
mark_page_accessed
(
to_page
);
...
...
drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c
浏览文件 @
1c9c20f6
...
...
@@ -136,10 +136,10 @@ static int vmw_gmr_build_descriptors(struct list_head *desc_pages,
if
(
likely
(
page_virtual
!=
NULL
))
{
desc_virtual
->
ppn
=
page_to_pfn
(
page
);
kunmap_atomic
(
page_virtual
,
KM_USER0
);
kunmap_atomic
(
page_virtual
);
}
page_virtual
=
kmap_atomic
(
page
,
KM_USER0
);
page_virtual
=
kmap_atomic
(
page
);
desc_virtual
=
page_virtual
-
1
;
prev_pfn
=
~
(
0UL
);
...
...
@@ -169,7 +169,7 @@ static int vmw_gmr_build_descriptors(struct list_head *desc_pages,
}
if
(
likely
(
page_virtual
!=
NULL
))
kunmap_atomic
(
page_virtual
,
KM_USER0
);
kunmap_atomic
(
page_virtual
);
return
0
;
out_err:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录