Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
time.c File Reference
#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/delay.h>
#include <linux/ioport.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/bcd.h>
#include <linux/profile.h>
#include <linux/irq_work.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <asm/hwrpb.h>
#include <asm/rtc.h>
#include <linux/mc146818rtc.h>
#include <linux/time.h>
#include <linux/timex.h>
#include <linux/clocksource.h>
#include "proto.h"
#include "irq_impl.h"

Go to the source code of this file.

Macros

#define TICK_SIZE   (tick_nsec / 1000)
 
#define FIX_SHIFT   48
 
#define test_irq_work_pending()   0
 
#define clear_irq_work_pending()
 
#define CALIBRATE_LATCH   0xffff
 
#define TIMEOUT_COUNT   0x100000
 

Functions

 DEFINE_SPINLOCK (rtc_lock)
 
 EXPORT_SYMBOL (rtc_lock)
 
int update_persistent_clock (struct timespec now)
 
void read_persistent_clock (struct timespec *ts)
 
irqreturn_t timer_interrupt (int irq, void *dev)
 
void __init common_init_rtc (void)
 
unsigned int common_get_rtc_time (struct rtc_time *time)
 
int common_set_rtc_time (struct rtc_time *time)
 
void __init time_init (void)
 

Variables

unsigned long est_cycle_freq
 

Macro Definition Documentation

#define CALIBRATE_LATCH   0xffff

Definition at line 309 of file time.c.

#define clear_irq_work_pending ( )

Definition at line 101 of file time.c.

#define FIX_SHIFT   48

Definition at line 71 of file time.c.

#define test_irq_work_pending ( )    0

Definition at line 100 of file time.c.

#define TICK_SIZE   (tick_nsec / 1000)

Definition at line 64 of file time.c.

#define TIMEOUT_COUNT   0x100000

Definition at line 310 of file time.c.

Function Documentation

unsigned int common_get_rtc_time ( struct rtc_time time)

Definition at line 238 of file time.c.

void __init common_init_rtc ( void  )

Definition at line 204 of file time.c.

int common_set_rtc_time ( struct rtc_time time)

Definition at line 243 of file time.c.

DEFINE_SPINLOCK ( rtc_lock  )
EXPORT_SYMBOL ( rtc_lock  )
void read_persistent_clock ( struct timespec ts)

Definition at line 118 of file time.c.

void __init time_init ( void  )

Definition at line 386 of file time.c.

irqreturn_t timer_interrupt ( int  irq,
void dev 
)

Definition at line 164 of file time.c.

int update_persistent_clock ( struct timespec  now)

Definition at line 113 of file time.c.

Variable Documentation

unsigned long est_cycle_freq

Definition at line 83 of file time.c.

__u32 last_time

Definition at line 76 of file time.c.

unsigned long partial_tick

Definition at line 80 of file time.c.

unsigned long scaled_ticks_per_cycle

Definition at line 78 of file time.c.