Using ksys_open() and ksys_close() wrappers allow us to avoid the
in-kernel calls to the sys_open() and sys_close() syscalls.
Change-Id: Iea33654daef917f88cede31675c66e8b5becad77
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
set_fs(KERNEL_DS);
- fd = sys_open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0644);
+ fd = ksys_open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0644);
if (fd >= 0) {
file = fget(fd);
if (file) {
fput(file);
}
- sys_close(fd);
+ ksys_close(fd);
} else {
pr_err("Reboot parameter passing is failed.\n"
"Inform file path should be described correctly in config.\n");