Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
jiffies.c File Reference
#include <linux/clocksource.h>
#include <linux/jiffies.h>
#include <linux/module.h>
#include <linux/init.h>
#include "tick-internal.h"

Go to the source code of this file.

Macros

#define NSEC_PER_JIFFY   ((NSEC_PER_SEC+HZ/2)/HZ)
 
#define JIFFIES_SHIFT   8
 

Functions

u64 get_jiffies_64 (void)
 
 EXPORT_SYMBOL (get_jiffies_64)
 
 EXPORT_SYMBOL (jiffies)
 
 core_initcall (init_jiffies_clocksource)
 
struct clocksource *__init __weak clocksource_default_clock (void)
 
int register_refined_jiffies (long cycles_per_second)
 

Variables

struct clocksource clocksource_jiffies
 
struct clocksource refined_jiffies
 

Macro Definition Documentation

#define JIFFIES_SHIFT   8

Definition at line 54 of file jiffies.c.

#define NSEC_PER_JIFFY   ((NSEC_PER_SEC+HZ/2)/HZ)

Definition at line 40 of file jiffies.c.

Function Documentation

struct clocksource* __init __weak clocksource_default_clock ( void  )
read

Definition at line 94 of file jiffies.c.

core_initcall ( init_jiffies_clocksource  )
EXPORT_SYMBOL ( get_jiffies_64  )
EXPORT_SYMBOL ( jiffies  )
u64 get_jiffies_64 ( void  )

Definition at line 71 of file jiffies.c.

int register_refined_jiffies ( long  cycles_per_second)

Definition at line 101 of file jiffies.c.

Variable Documentation

struct clocksource clocksource_jiffies
Initial value:
= {
.name = "jiffies",
.rating = 1,
.read = jiffies_read,
.mask = 0xffffffff,
.shift = JIFFIES_SHIFT,
}

Definition at line 61 of file jiffies.c.

struct clocksource refined_jiffies

Definition at line 99 of file jiffies.c.