Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20071
b: refs/heads/master
c: 0347880
h: refs/heads/master
i:
  20069: 8fd2829
  20067: 15e5fb0
  20063: 7a88737
v: v3
  • Loading branch information
Olaf Hering authored and Paul Mackerras committed Feb 7, 2006
1 parent d14383b commit 4f835fa
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 24 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: d8a8188ded1251afc6a2ec8a668b0bdf038b64a1
refs/heads/master: 03478804920a53405dfff73a0b23e9dcbbbee1c1
1 change: 0 additions & 1 deletion trunk/arch/powerpc/platforms/chrp/chrp.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
extern void chrp_nvram_init(void);
extern void chrp_get_rtc_time(struct rtc_time *);
extern int chrp_set_rtc_time(struct rtc_time *);
extern void chrp_calibrate_decr(void);
extern long chrp_time_init(void);

extern void chrp_find_bridges(void);
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/chrp/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ void __init chrp_init(void)
ppc_md.halt = rtas_halt;

ppc_md.time_init = chrp_time_init;
ppc_md.calibrate_decr = chrp_calibrate_decr;
ppc_md.calibrate_decr = generic_calibrate_decr;

/* this may get overridden with rtas routines later... */
ppc_md.set_rtc_time = chrp_set_rtc_time;
Expand Down
21 changes: 0 additions & 21 deletions trunk/arch/powerpc/platforms/chrp/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,24 +167,3 @@ void chrp_get_rtc_time(struct rtc_time *tm)
tm->tm_mon = mon;
tm->tm_year = year;
}


void __init chrp_calibrate_decr(void)
{
struct device_node *cpu;
unsigned int freq, *fp;

/*
* The cpu node should have a timebase-frequency property
* to tell us the rate at which the decrementer counts.
*/
freq = 16666000; /* hardcoded default */
cpu = find_type_devices("cpu");
if (cpu != 0) {
fp = (unsigned int *)
get_property(cpu, "timebase-frequency", NULL);
if (fp != 0)
freq = *fp;
}
ppc_tb_freq = freq;
}

0 comments on commit 4f835fa

Please sign in to comment.