Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
tick-common.c File Reference
#include <linux/cpu.h>
#include <linux/err.h>
#include <linux/hrtimer.h>
#include <linux/interrupt.h>
#include <linux/percpu.h>
#include <linux/profile.h>
#include <linux/sched.h>
#include <asm/irq_regs.h>
#include "tick-internal.h"

Go to the source code of this file.

Functions

 DEFINE_PER_CPU (struct tick_device, tick_cpu_device)
 
struct tick_device * tick_get_device (int cpu)
 
int tick_is_oneshot_available (void)
 
void tick_handle_periodic (struct clock_event_device *dev)
 
void tick_setup_periodic (struct clock_event_device *dev, int broadcast)
 
void __init tick_init (void)
 

Variables

ktime_t tick_next_period
 
ktime_t tick_period
 
int tick_do_timer_cpu __read_mostly = TICK_DO_TIMER_BOOT
 

Function Documentation

DEFINE_PER_CPU ( struct tick_device  ,
tick_cpu_device   
)
struct tick_device* tick_get_device ( int  cpu)
read

Definition at line 41 of file tick-common.c.

void tick_handle_periodic ( struct clock_event_device *  dev)

Definition at line 82 of file tick-common.c.

void __init tick_init ( void  )

tick_init - initialize the tick control

Register the notifier with the clockevents framework

Definition at line 416 of file tick-common.c.

int tick_is_oneshot_available ( void  )

tick_is_oneshot_available - check for a oneshot capable event device

Definition at line 49 of file tick-common.c.

void tick_setup_periodic ( struct clock_event_device *  dev,
int  broadcast 
)

Definition at line 117 of file tick-common.c.

Variable Documentation

int tick_do_timer_cpu __read_mostly = TICK_DO_TIMER_BOOT

Definition at line 35 of file tick-common.c.

ktime_t tick_next_period

Definition at line 33 of file tick-common.c.

ktime_t tick_period

Definition at line 34 of file tick-common.c.