cosmetic changes

- sys_gettimeofday()
This commit is contained in:
NAKAMURA Gou
2015-09-16 13:16:22 +09:00
parent 40b8587a8a
commit 3819eec03f

View File

@ -4975,14 +4975,14 @@ void update_cpu_local_time(void)
SYSCALL_DECLARE(gettimeofday) SYSCALL_DECLARE(gettimeofday)
{ {
struct timeval *tv = (struct timeval *)ihk_mc_syscall_arg0(ctx); struct timeval *tv = (struct timeval *)ihk_mc_syscall_arg0(ctx);
struct syscall_request request IHK_DMA_ALIGN; struct syscall_request request IHK_DMA_ALIGN;
/* Do it locally if supported */ /* Do it locally if supported */
if (gettime_local_support) { if (gettime_local_support) {
update_cpu_local_time(); update_cpu_local_time();
/* Check validity of argument */ /* Check validity of argument */
if (!lookup_process_memory_range(cpu_local_var(current)->vm, if (!lookup_process_memory_range(cpu_local_var(current)->vm,
(unsigned long)tv, (unsigned long)tv + sizeof(*tv))) { (unsigned long)tv, (unsigned long)tv + sizeof(*tv))) {
return -EFAULT; return -EFAULT;
} }