Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151049
b: refs/heads/master
c: 177996e
h: refs/heads/master
i:
  151047: 7d34a78
v: v3
  • Loading branch information
Benjamin Herrenschmidt committed Jun 15, 2009
1 parent 7b3564e commit 9010124
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 529273c1ad5f591d066a9d90a6bd6affa19c5461
refs/heads/master: 177996e6e20f15004d6757d9b859f57d181ef443
4 changes: 0 additions & 4 deletions trunk/arch/powerpc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ config GENERIC_HWEIGHT
bool
default y

config GENERIC_CALIBRATE_DELAY
bool
default y

config GENERIC_FIND_NEXT_BIT
bool
default y
Expand Down
10 changes: 10 additions & 0 deletions trunk/arch/powerpc/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
#include <linux/jiffies.h>
#include <linux/posix-timers.h>
#include <linux/irq.h>
#include <linux/delay.h>

#include <asm/io.h>
#include <asm/processor.h>
Expand Down Expand Up @@ -1143,6 +1144,15 @@ void div128_by_32(u64 dividend_high, u64 dividend_low,

}

/* We don't need to calibrate delay, we use the CPU timebase for that */
void calibrate_delay(void)
{
/* Some generic code (such as spinlock debug) use loops_per_jiffy
* as the number of __delay(1) in a jiffy, so make it so
*/
loops_per_jiffy = tb_ticks_per_jiffy;
}

static int __init rtc_init(void)
{
struct platform_device *pdev;
Expand Down

0 comments on commit 9010124

Please sign in to comment.