#include <linux/errno.h>
#include <linux/export.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/param.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/timex.h>
#include <linux/kernel_stat.h>
#include <linux/time.h>
#include <linux/init.h>
#include <linux/profile.h>
#include <linux/cpu.h>
#include <linux/security.h>
#include <linux/percpu.h>
#include <linux/rtc.h>
#include <linux/jiffies.h>
#include <linux/posix-timers.h>
#include <linux/irq.h>
#include <linux/delay.h>
#include <linux/irq_work.h>
#include <asm/trace.h>
#include <asm/io.h>
#include <asm/processor.h>
#include <asm/nvram.h>
#include <asm/cache.h>
#include <asm/machdep.h>
#include <asm/uaccess.h>
#include <asm/time.h>
#include <asm/prom.h>
#include <asm/irq.h>
#include <asm/div64.h>
#include <asm/smp.h>
#include <asm/vdso_datapage.h>
#include <asm/firmware.h>
#include <asm/cputime.h>
#include <linux/clockchips.h>
#include <linux/timekeeper_internal.h>
Go to the source code of this file.
| #define calc_cputime_factors |
( |
| ) |
|
| #define clear_irq_work_pending |
( |
| ) |
|
| #define days_in_month |
( |
|
a | ) |
(month_days[(a) - 1]) |
| #define days_in_year |
( |
|
a | ) |
(leapyear(a) ? 366 : 365) |
| #define DECREMENTER_MAX 0x7fffffff |
Value:
((
year) % 100 != 0 || (
year) % 400 == 0))
Definition at line 930 of file time.c.
| #define SCALE_XSEC |
( |
|
xsec, |
|
|
|
max |
|
) |
| mulhwu((xsec) << 12, max) |
| #define test_irq_work_pending |
( |
| ) |
0 |
| #define XSEC_PER_SEC (1024*1024) |
| DEFINE_PER_CPU |
( |
u64 |
, |
|
|
decrementers_next_tb |
|
|
) |
| |
| void div128_by_32 |
( |
u64 |
dividend_high, |
|
|
u64 |
dividend_low, |
|
|
unsigned |
divisor, |
|
|
struct div_result * |
dr |
|
) |
| |
| struct clock_event_device decrementer_clockevent |
Initial value:= {
.name = "decrementer",
.rating = 200,
.irq = 0,
.set_next_event = decrementer_set_next_event,
.set_mode = decrementer_set_mode,
.features = CLOCK_EVT_FEAT_ONESHOT,
}
Definition at line 103 of file time.c.
| unsigned long ppc_proc_freq |
| unsigned long ppc_tb_freq |
| unsigned long tb_ticks_per_jiffy |
| unsigned long tb_ticks_per_sec |
| unsigned long tb_ticks_per_usec = 100 |