Linux Kernel
3.7.1
|
#include <linux/timekeeper_internal.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/percpu.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/syscore_ops.h>
#include <linux/clocksource.h>
#include <linux/jiffies.h>
#include <linux/time.h>
#include <linux/tick.h>
#include <linux/stop_machine.h>
Go to the source code of this file.
Macros | |
#define | old_vsyscall_fixup(tk) |
Variables | |
int __read_mostly | timekeeping_suspended |
#define old_vsyscall_fixup | ( | tk | ) |
Definition at line 1089 of file timekeeping.c.
|
read |
read_persistent_clock - Return time from the persistent clock.
Weak dummy function for arches that do not yet support it. Reads the time from the battery backed persistent clock. Returns a timespec with tv_sec=0 and tv_nsec=0 if unsupported.
XXX - Do be sure to remove it once all arches implement it.
read_boot_clock - Return time of the system start.
Weak dummy function for arches that do not yet support it. Function to read the exact time the system has been started. Returns a timespec with tv_sec=0 and tv_nsec=0 if unsupported.
XXX - Do be sure to remove it once all arches implement it.
Definition at line 567 of file timekeeping.c.
Definition at line 1260 of file timekeeping.c.
Definition at line 1267 of file timekeeping.c.
__cacheline_aligned_in_smp DEFINE_SEQLOCK | ( | xtime_lock | ) |
device_initcall | ( | timekeeping_init_ops | ) |
do_gettimeofday - Returns the time of day in a timeval : pointer to the timeval to be set
NOTE: Users should be converted to using getnstimeofday()
Definition at line 346 of file timekeeping.c.
Definition at line 1306 of file timekeeping.c.
EXPORT_SYMBOL | ( | getnstimeofday | ) |
EXPORT_SYMBOL | ( | do_gettimeofday | ) |
EXPORT_SYMBOL | ( | do_settimeofday | ) |
EXPORT_SYMBOL | ( | timekeeping_inject_offset | ) |
EXPORT_SYMBOL | ( | getrawmonotonic | ) |
EXPORT_SYMBOL | ( | get_seconds | ) |
EXPORT_SYMBOL | ( | current_kernel_time | ) |
EXPORT_SYMBOL_GPL | ( | ktime_get | ) |
EXPORT_SYMBOL_GPL | ( | ktime_get_ts | ) |
EXPORT_SYMBOL_GPL | ( | ktime_get_real | ) |
EXPORT_SYMBOL_GPL | ( | getboottime | ) |
EXPORT_SYMBOL_GPL | ( | get_monotonic_boottime | ) |
EXPORT_SYMBOL_GPL | ( | ktime_get_boottime | ) |
EXPORT_SYMBOL_GPL | ( | monotonic_to_bootbased | ) |
EXPORT_SYMBOL_GPL | ( | ktime_get_monotonic_offset | ) |
Definition at line 1283 of file timekeeping.c.
Definition at line 1252 of file timekeeping.c.
void get_xtime_and_monotonic_and_sleep_offset | ( | struct timespec * | xtim, |
struct timespec * | wtom, | ||
struct timespec * | sleep | ||
) |
get_xtime_and_monotonic_and_sleep_offset() - get xtime, wall_to_monotonic, and sleep offsets. : pointer to timespec to be set with xtime : pointer to timespec to be set with wall_to_monotonic : pointer to timespec to be set with time in suspend
Definition at line 1320 of file timekeeping.c.
getboottime - Return the real time of system boot. : pointer to the timespec to be set
Returns the wall-time of boot in a timespec.
This is based on the wall_to_monotonic offset and the total suspend time. Calls to settimeofday will affect the value returned (which basically means that however wrong your real time clock is at boot time, you get the right time here).
Definition at line 1176 of file timekeeping.c.
Definition at line 249 of file timekeeping.c.
ktime_get_boottime - Returns monotonic time since boot in a ktime
Returns the monotonic time since boot in a ktime
This is similar to CLOCK_MONTONIC/ktime_get, but also includes the time spent in suspend.
Definition at line 1231 of file timekeeping.c.
ktime_get_monotonic_offset() - get wall_to_monotonic in ktime_t format
Definition at line 1369 of file timekeeping.c.
ktime_get_real - get the real (wall-) time in ktime_t format
returns the time in ktime_t format
Definition at line 487 of file timekeeping.c.
ktime_get_ts - get the monotonic clock in timespec format : pointer to timespec variable
The function calculates the monotonic clock from the realtime clock and the wall_to_monotonic offset and stores the result in normalized timespec format in the variable pointed to by .
Definition at line 279 of file timekeeping.c.
monotonic_to_bootbased - Convert the monotonic time to boot based. : pointer to the timespec to be converted
Definition at line 1244 of file timekeeping.c.
Definition at line 591 of file timekeeping.c.
timekeeping_inject_sleeptime - Adds suspend interval to timeekeeping values : pointer to a timespec delta value
This hook is for architectures that cannot support read_persistent_clock because their RTC/persistent clock is only accessible when irqs are enabled.
This function should only be called by rtc_resume(), and allows a suspend offset to be injected into the timekeeping values.
Definition at line 673 of file timekeeping.c.
timekeeping_max_deferment - Returns max time the clocksource can be deferred
Definition at line 542 of file timekeeping.c.
void timekeeping_notify | ( | struct clocksource * | clock | ) |
timekeeping_valid_for_hres - Check if timekeeping is suitable for hres
Definition at line 523 of file timekeeping.c.
xtime_update() - advances the timekeeping infrastructure : number of ticks, that have elapsed since the last call.
Must be called with interrupts disabled.
Definition at line 1390 of file timekeeping.c.
int __read_mostly timekeeping_suspended |
Definition at line 35 of file timekeeping.c.