Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36668
b: refs/heads/master
c: 746140c
h: refs/heads/master
v: v3
  • Loading branch information
Kevin Hilman authored and Russell King committed Sep 28, 2006
1 parent 8793465 commit ba3a86c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 82606c66e943227afcec8a3c7b8428b99a7f88b8
refs/heads/master: 746140c71d537560bbd22c1b148fb21031c30e71
4 changes: 4 additions & 0 deletions trunk/arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ config ARM
Europe. There is an ARM Linux project with a web page at
<http://www.arm.linux.org.uk/>.

config GENERIC_TIME
bool
default n

config MMU
bool
default y
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/arm/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ EXPORT_SYMBOL(profile_pc);
*/
int (*set_rtc)(void);

#ifndef CONFIG_GENERIC_TIME
static unsigned long dummy_gettimeoffset(void)
{
return 0;
}
#endif

/*
* Scheduler clock - returns current time in nanosec units.
Expand Down Expand Up @@ -230,6 +232,7 @@ static inline void do_leds(void)
#define do_leds()
#endif

#ifndef CONFIG_GENERIC_TIME
void do_gettimeofday(struct timeval *tv)
{
unsigned long flags;
Expand Down Expand Up @@ -291,6 +294,7 @@ int do_settimeofday(struct timespec *tv)
}

EXPORT_SYMBOL(do_settimeofday);
#endif /* !CONFIG_GENERIC_TIME */

/**
* save_time_delta - Save the offset between system time and RTC time
Expand Down Expand Up @@ -500,8 +504,10 @@ device_initcall(timer_init_sysfs);

void __init time_init(void)
{
#ifndef CONFIG_GENERIC_TIME
if (system_timer->offset == NULL)
system_timer->offset = dummy_gettimeoffset;
#endif
system_timer->init();

#ifdef CONFIG_NO_IDLE_HZ
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-arm/mach/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ struct sys_timer {
void (*init)(void);
void (*suspend)(void);
void (*resume)(void);
#ifndef CONFIG_GENERIC_TIME
unsigned long (*offset)(void);
#endif

#ifdef CONFIG_NO_IDLE_HZ
struct dyn_tick_timer *dyn_tick;
Expand Down
4 changes: 4 additions & 0 deletions trunk/include/asm-arm/timeofday.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#ifndef _ASM_ARM_TIMEOFDAY_H
#define _ASM_ARM_TIMEOFDAY_H
#include <asm-generic/timeofday.h>
#endif

0 comments on commit ba3a86c

Please sign in to comment.