diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1999-10-09 00:00:47 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1999-10-09 00:00:47 +0000 |
commit | d6434e1042f3b0a6dfe1b1f615af369486f9b1fa (patch) | |
tree | e2be02f33984c48ec019c654051d27964e42c441 /arch/arm/kernel/time.c | |
parent | 609d1e803baf519487233b765eb487f9ec227a18 (diff) |
Merge with 2.3.19.
Diffstat (limited to 'arch/arm/kernel/time.c')
-rw-r--r-- | arch/arm/kernel/time.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/arch/arm/kernel/time.c b/arch/arm/kernel/time.c index 4e49885b8..c48c62108 100644 --- a/arch/arm/kernel/time.c +++ b/arch/arm/kernel/time.c @@ -76,6 +76,25 @@ unsigned long mktime(unsigned int year, unsigned int mon, )*60 + sec; /* finally seconds */ } +/* + * Handle profile stuff... + */ +static void do_profile(unsigned long pc) +{ + if (prof_buffer && current->pid) { + extern int _stext; + + pc -= (unsigned long)&_stext; + + pc >>= prof_shift; + + if (pc >= prof_len) + pc = prof_len - 1; + + prof_buffer[pc] += 1; + } +} + #include <asm/arch/time.h> static unsigned long do_gettimeoffset(void) @@ -130,7 +149,7 @@ void do_settimeofday(struct timeval *tv) sti(); } -__initfunc(void time_init(void)) +void __init time_init(void) { xtime.tv_usec = 0; |