Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
tick-oneshot.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 "tick-internal.h"

Go to the source code of this file.

Functions

int tick_program_event (ktime_t expires, int force)
 
void tick_resume_oneshot (void)
 
void tick_setup_oneshot (struct clock_event_device *newdev, void(*handler)(struct clock_event_device *), ktime_t next_event)
 
int tick_switch_to_oneshot (void(*handler)(struct clock_event_device *))
 
int tick_oneshot_mode_active (void)
 

Function Documentation

int tick_oneshot_mode_active ( void  )

tick_check_oneshot_mode - check whether the system is in oneshot mode

returns 1 when either nohz or highres are enabled. otherwise 0.

Definition at line 94 of file tick-oneshot.c.

int tick_program_event ( ktime_t  expires,
int  force 
)

tick_program_event

Definition at line 27 of file tick-oneshot.c.

void tick_resume_oneshot ( void  )

tick_resume_onshot - resume oneshot mode

Definition at line 37 of file tick-oneshot.c.

void tick_setup_oneshot ( struct clock_event_device *  newdev,
void(*)(struct clock_event_device *)  handler,
ktime_t  next_event 
)

tick_setup_oneshot - setup the event device for oneshot mode (hres or nohz)

Definition at line 48 of file tick-oneshot.c.

int tick_switch_to_oneshot ( void(*)(struct clock_event_device *)  handler)

tick_switch_to_oneshot - switch to oneshot mode

Definition at line 60 of file tick-oneshot.c.