Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45338
b: refs/heads/master
c: e97126c
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Russell King committed Jan 8, 2007
1 parent 85ba72f commit 442d595
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 6020dff09252e3670a89edb36baaa4afb9b10d15
refs/heads/master: e97126cd9056b3b42cdc862ace2ed66f8026f55b
11 changes: 11 additions & 0 deletions trunk/arch/arm/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,17 @@ unsigned long long __attribute__((weak)) sched_clock(void)
return (unsigned long long)jiffies * (1000000000 / HZ);
}

/*
* An implementation of printk_clock() independent from
* sched_clock(). This avoids non-bootable kernels when
* printk_clock is enabled.
*/
unsigned long long printk_clock(void)
{
return (unsigned long long)(jiffies - INITIAL_JIFFIES) *
(1000000000 / HZ);
}

static unsigned long next_rtc_update;

/*
Expand Down

0 comments on commit 442d595

Please sign in to comment.