Files
android_kernel_samsung_msm8…/arch/arm/kernel/update_vsyscall_arm.h
T
Greg Reid 5d9616e1f1 kernel: gtod: vsyscall
Introduce kernel user helper vsyscall to allow a higher performance
gettimeofday implementation in user-space.

Change-Id: I9b9971d217382129170ecd6a35461539dac9eebb
Signed-off-by: Brent DeGraaf <bdegraaf@codeaurora.org>
2012-11-15 09:34:40 -05:00

24 lines
848 B
C

/* Copyright (c) 2012, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <linux/export.h>
#include <linux/clocksource.h>
#include <linux/time.h>
extern void *vectors_page;
extern struct timezone sys_tz;
/*
* This read-write spinlock protects us from races in SMP while
* updating the kernel user helper-embedded time.
*/
__cacheline_aligned_in_smp DEFINE_SEQLOCK(kuh_time_lock);