mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
gpu: nvgpu: Split as code to as IOCTL and common
Split as_gk20a.c into two parts: common/linux/ioctl_as.c deals with as related devnodes and ioctls. This file contains all the Linux specific parts of as_gk20a.c. common/as.c deals with general as_gk20a maintenance and is Linux independent. JIRA NVGPU-16 Change-Id: I2d8541e0bd6ce159dc6e4de8e819dfcff0fa8f80 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1330803 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
660c9a9510
commit
1e355ca52e
@@ -205,13 +205,13 @@ static int gk20a_ctrl_alloc_as(
|
||||
|
||||
snprintf(name, sizeof(name), "nvhost-%s-fd%d", g->name, fd);
|
||||
|
||||
file = anon_inode_getfile(name, g->as.cdev.ops, NULL, O_RDWR);
|
||||
file = anon_inode_getfile(name, g->as_dev.cdev.ops, NULL, O_RDWR);
|
||||
if (IS_ERR(file)) {
|
||||
err = PTR_ERR(file);
|
||||
goto clean_up;
|
||||
}
|
||||
|
||||
err = gk20a_as_alloc_share(&g->as, args->big_page_size, args->flags,
|
||||
err = gk20a_as_alloc_share(g, args->big_page_size, args->flags,
|
||||
&as_share);
|
||||
if (err)
|
||||
goto clean_up_file;
|
||||
|
||||
Reference in New Issue
Block a user