linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Patch to arch/ppc/kernel/m8260_setup.c
@ 2000-08-22 12:39 diekema_jon
  2000-08-22 14:16 ` Matt Gessner
  0 siblings, 1 reply; 3+ messages in thread
From: diekema_jon @ 2000-08-22 12:39 UTC (permalink / raw)
  To: linuxppc-embedded


In order to get things to compile for the MPC8260, the following
patch was needed:

dell 377} bk diffs -r1.7 -u arch/ppc/kernel/m8260_setup.c
===== arch/ppc/kernel/m8260_setup.c 1.7 vs 1.8 =====
--- 1.7/arch/ppc/kernel/m8260_setup.c   Wed Aug  2 12:53:58 2000
+++ 1.8/arch/ppc/kernel/m8260_setup.c   Mon Aug 21 21:17:00 2000
@@ -113,9 +113,8 @@

        freq = (binfo->bi_busfreq * 1000000);
         divisor = 4;
-        decrementer_count = freq / HZ / divisor;
-        count_period_num = divisor;
-        count_period_den = freq / 1000000;
+        tb_ticks_per_jiffy = freq / (divisor * HZ);
+        tb_to_us = mulhwu_scale_factor(freq / divisor, 1000000);
 }

 /* The 8260 has an internal 1-second timer update register that

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Patch to arch/ppc/kernel/m8260_setup.c
  2000-08-22 12:39 Patch to arch/ppc/kernel/m8260_setup.c diekema_jon
@ 2000-08-22 14:16 ` Matt Gessner
  2000-08-22 14:55   ` Jon Diekema
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Gessner @ 2000-08-22 14:16 UTC (permalink / raw)
  To: diekema_jon; +Cc: linuxppc-embedded


diekema_jon wrote:
>
> In order to get things to compile for the MPC8260, the following
> patch was needed:
>
> dell 377} bk diffs -r1.7 -u arch/ppc/kernel/m8260_setup.c
> ===== arch/ppc/kernel/m8260_setup.c 1.7 vs 1.8 =====
> --- 1.7/arch/ppc/kernel/m8260_setup.c   Wed Aug  2 12:53:58 2000
> +++ 1.8/arch/ppc/kernel/m8260_setup.c   Mon Aug 21 21:17:00 2000
> @@ -113,9 +113,8 @@
>
>         freq = (binfo->bi_busfreq * 1000000);
>          divisor = 4;
> -        decrementer_count = freq / HZ / divisor;
> -        count_period_num = divisor;
> -        count_period_den = freq / 1000000;
> +        tb_ticks_per_jiffy = freq / (divisor * HZ);
> +        tb_to_us = mulhwu_scale_factor(freq / divisor, 1000000);
>  }
>
>  /* The 8260 has an internal 1-second timer update register that
>

You don't mention the source of this code (i.e. linux rev and test#).

My 2.3 kernel compiles just fine...

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Patch to arch/ppc/kernel/m8260_setup.c
  2000-08-22 14:16 ` Matt Gessner
@ 2000-08-22 14:55   ` Jon Diekema
  0 siblings, 0 replies; 3+ messages in thread
From: Jon Diekema @ 2000-08-22 14:55 UTC (permalink / raw)
  To: Matt Gessner; +Cc: linuxppc-embedded


At 10:16 AM 8/22/2000, you wrote:
>diekema_jon wrote:
> >
> > In order to get things to compile for the MPC8260, the following
> > patch was needed:
> >
> > dell 377} bk diffs -r1.7 -u arch/ppc/kernel/m8260_setup.c
> > ===== arch/ppc/kernel/m8260_setup.c 1.7 vs 1.8 =====
> > --- 1.7/arch/ppc/kernel/m8260_setup.c   Wed Aug  2 12:53:58 2000
> > +++ 1.8/arch/ppc/kernel/m8260_setup.c   Mon Aug 21 21:17:00 2000
> > @@ -113,9 +113,8 @@
> >
> >         freq = (binfo->bi_busfreq * 1000000);
> >          divisor = 4;
> > -        decrementer_count = freq / HZ / divisor;
> > -        count_period_num = divisor;
> > -        count_period_den = freq / 1000000;
> > +        tb_ticks_per_jiffy = freq / (divisor * HZ);
> > +        tb_to_us = mulhwu_scale_factor(freq / divisor, 1000000);
> >  }
> >
> >  /* The 8260 has an internal 1-second timer update register that

>You don't mention the source of this code (i.e. linux rev and test#).

Oops... The patch is working with Linux 2.4.0-test7

For more details on this issue see:

http://lists.linuxppc.org/listarcs/linuxppc-embedded/200008/msg00109.html
http://lists.linuxppc.org/listarcs/linuxppc-embedded/200008/msg00113.html
------------------\\----------------------\\----------------------------
Jon Diekema        |                       | Smiths Industries
(616) 241-8310     |                       | 3290 Patterson Avenue, SE
diekema_jon@si.com \\                      \\  Grand Rapids, MI 49512-1991


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-08-22 14:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-22 12:39 Patch to arch/ppc/kernel/m8260_setup.c diekema_jon
2000-08-22 14:16 ` Matt Gessner
2000-08-22 14:55   ` Jon Diekema

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).