Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
time.c File Reference
#include <linux/kernel_stat.h>
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/param.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/cpu.h>
#include <linux/stop_machine.h>
#include <linux/time.h>
#include <linux/device.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/smp.h>
#include <linux/types.h>
#include <linux/profile.h>
#include <linux/timex.h>
#include <linux/notifier.h>
#include <linux/timekeeper_internal.h>
#include <linux/clockchips.h>
#include <linux/gfp.h>
#include <linux/kprobes.h>
#include <asm/uaccess.h>
#include <asm/delay.h>
#include <asm/div64.h>
#include <asm/vdso.h>
#include <asm/irq.h>
#include <asm/irq_regs.h>
#include <asm/vtimer.h>
#include <asm/etr.h>
#include <asm/cio.h>
#include "entry.h"

Go to the source code of this file.

Data Structures

struct  clock_sync_data
 

Macros

#define KMSG_COMPONENT   "time"
 
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt
 
#define USECS_PER_JIFFY   ((unsigned long) 1000000/HZ)
 
#define CLK_TICKS_PER_JIFFY   ((unsigned long) USECS_PER_JIFFY << 12)
 
#define CLOCK_SYNC_HAS_ETR   0
 
#define CLOCK_SYNC_HAS_STP   1
 
#define CLOCK_SYNC_ETR   2
 
#define CLOCK_SYNC_STP   3
 

Enumerations

enum  etr_event {
  ETR_EVENT_PORT0_CHANGE, ETR_EVENT_PORT1_CHANGE, ETR_EVENT_PORT_ALERT, ETR_EVENT_SYNC_CHECK,
  ETR_EVENT_SWITCH_LOCAL, ETR_EVENT_UPDATE
}
 

Functions

 EXPORT_SYMBOL_GPL (sched_clock_base_cc)
 
unsigned long long notrace
__kprobes 
sched_clock (void)
 
unsigned long long monotonic_clock (void)
 
 EXPORT_SYMBOL (monotonic_clock)
 
void tod_to_timeval (__u64 todval, struct timespec *xt)
 
 EXPORT_SYMBOL (tod_to_timeval)
 
void clock_comparator_work (void)
 
void init_cpu_timer (void)
 
void read_persistent_clock (struct timespec *ts)
 
void read_boot_clock (struct timespec *ts)
 
struct clocksource *__init clocksource_default_clock (void)
 
void update_vsyscall_old (struct timespec *wall_time, struct timespec *wtm, struct clocksource *clock, u32 mult)
 
void update_vsyscall_tz (void)
 
void __init time_init (void)
 
int get_sync_clock (unsigned long long *clock)
 
 EXPORT_SYMBOL (get_sync_clock)
 
 early_param ("etr", early_parse_etr)
 
 arch_initcall (etr_init)
 
void etr_switch_to_local (void)
 
void etr_sync_check (void)
 
 device_initcall (etr_init_sysfs)
 
 early_param ("stp", early_parse_stp)
 
 arch_initcall (stp_init)
 
void stp_sync_check (void)
 
void stp_island_check (void)
 
 device_initcall (stp_init_sysfs)
 

Variables

u64 sched_clock_base_cc = -1
 
struct timezone sys_tz
 

Macro Definition Documentation

#define CLK_TICKS_PER_JIFFY   ((unsigned long) USECS_PER_JIFFY << 12)

Definition at line 54 of file time.c.

#define CLOCK_SYNC_ETR   2

Definition at line 325 of file time.c.

#define CLOCK_SYNC_HAS_ETR   0

Definition at line 323 of file time.c.

#define CLOCK_SYNC_HAS_STP   1

Definition at line 324 of file time.c.

#define CLOCK_SYNC_STP   3

Definition at line 326 of file time.c.

#define KMSG_COMPONENT   "time"

Definition at line 14 of file time.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 15 of file time.c.

#define USECS_PER_JIFFY   ((unsigned long) 1000000/HZ)

Definition at line 53 of file time.c.

Enumeration Type Documentation

enum etr_event
Enumerator:
ETR_EVENT_PORT0_CHANGE 
ETR_EVENT_PORT1_CHANGE 
ETR_EVENT_PORT_ALERT 
ETR_EVENT_SYNC_CHECK 
ETR_EVENT_SWITCH_LOCAL 
ETR_EVENT_UPDATE 

Definition at line 429 of file time.c.

Function Documentation

arch_initcall ( etr_init  )
arch_initcall ( stp_init  )
void clock_comparator_work ( void  )

Definition at line 90 of file time.c.

struct clocksource* __init clocksource_default_clock ( void  )
read

Definition at line 217 of file time.c.

device_initcall ( etr_init_sysfs  )
device_initcall ( stp_init_sysfs  )
early_param ( "etr"  ,
early_parse_etr   
)
early_param ( "stp"  ,
early_parse_stp   
)
void etr_switch_to_local ( void  )

Definition at line 534 of file time.c.

void etr_sync_check ( void  )

Definition at line 552 of file time.c.

EXPORT_SYMBOL ( monotonic_clock  )
EXPORT_SYMBOL ( tod_to_timeval  )
EXPORT_SYMBOL ( get_sync_clock  )
EXPORT_SYMBOL_GPL ( sched_clock_base_cc  )
int get_sync_clock ( unsigned long long clock)

Definition at line 335 of file time.c.

void init_cpu_timer ( void  )

Definition at line 136 of file time.c.

unsigned long long monotonic_clock ( void  )

Definition at line 72 of file time.c.

void read_boot_clock ( struct timespec ts)

Definition at line 197 of file time.c.

void read_persistent_clock ( struct timespec ts)

Definition at line 192 of file time.c.

unsigned long long notrace __kprobes sched_clock ( void  )

Definition at line 64 of file time.c.

void stp_island_check ( void  )

Definition at line 1505 of file time.c.

void stp_sync_check ( void  )

Definition at line 1493 of file time.c.

void __init time_init ( void  )

Definition at line 258 of file time.c.

void tod_to_timeval ( __u64  todval,
struct timespec xt 
)

Definition at line 78 of file time.c.

void update_vsyscall_old ( struct timespec wall_time,
struct timespec wtm,
struct clocksource clock,
u32  mult 
)

Definition at line 222 of file time.c.

void update_vsyscall_tz ( void  )

Definition at line 243 of file time.c.

Variable Documentation

u64 sched_clock_base_cc = -1

Definition at line 56 of file time.c.

struct timezone sys_tz

Definition at line 50 of file time.c.