Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
ntp.c File Reference
#include <linux/capability.h>
#include <linux/clocksource.h>
#include <linux/workqueue.h>
#include <linux/hrtimer.h>
#include <linux/jiffies.h>
#include <linux/math64.h>
#include <linux/timex.h>
#include <linux/time.h>
#include <linux/mm.h>
#include <linux/module.h>
#include "tick-internal.h"

Go to the source code of this file.

Macros

#define MAX_TICKADJ   500LL /* usecs */
 
#define MAX_TICKADJ_SCALED   (((MAX_TICKADJ * NSEC_PER_USEC) << NTP_SCALE_SHIFT) / NTP_INTERVAL_FREQ)
 

Functions

 DEFINE_SPINLOCK (ntp_lock)
 
void ntp_clear (void)
 
u64 ntp_tick_length (void)
 
int second_overflow (unsigned long secs)
 
int do_adjtimex (struct timex *txc)
 
 __setup ("ntp_tick_adj=", ntp_tick_adj_setup)
 
void __init ntp_init (void)
 

Variables

unsigned long tick_usec = TICK_USEC
 
unsigned long tick_nsec
 

Macro Definition Documentation

#define MAX_TICKADJ   500LL /* usecs */

Definition at line 37 of file ntp.c.

#define MAX_TICKADJ_SCALED   (((MAX_TICKADJ * NSEC_PER_USEC) << NTP_SCALE_SHIFT) / NTP_INTERVAL_FREQ)

Definition at line 38 of file ntp.c.

Function Documentation

__setup ( )
DEFINE_SPINLOCK ( ntp_lock  )
int do_adjtimex ( struct timex txc)

Definition at line 620 of file ntp.c.

void ntp_clear ( void  )

ntp_clear - Clears the NTP state variables

Definition at line 346 of file ntp.c.

void __init ntp_init ( void  )

Definition at line 964 of file ntp.c.

u64 ntp_tick_length ( void  )

Definition at line 369 of file ntp.c.

int second_overflow ( unsigned long  secs)

Definition at line 391 of file ntp.c.

Variable Documentation

unsigned long tick_nsec

Definition at line 32 of file ntp.c.

unsigned long tick_usec = TICK_USEC

Definition at line 29 of file ntp.c.