From: Thiemo Seufer <ths@networkno.de>
To: Matteo Croce <technoboy85@gmail.com>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH 1/7] AR7: core support
Date: Mon, 3 Sep 2007 16:04:44 +0100 [thread overview]
Message-ID: <20070903150444.GC29574@networkno.de> (raw)
In-Reply-To: <40101cc30709030623r4fb2d3caw146fa6dec16b283e@mail.gmail.com>
Matteo Croce wrote:
[snip]
> diff --git a/arch/mips/ar7/clock.c b/arch/mips/ar7/clock.c
> new file mode 100644
> index 0000000..9edde34
> --- /dev/null
> +++ b/arch/mips/ar7/clock.c
> @@ -0,0 +1,472 @@
> +/*
> + * $Id: clock.c 8036 2007-07-18 13:42:24Z florian $
No CVS id strings, please.
> + * Copyright (C) 2007 OpenWrt.org
Does OpenWRT actually require copyright assignment? If not, this place
should list the Author(s) as the actual copyright holders.
[snip]
> +int ar7_afe_clock = 35328000;
> +int ar7_ref_clock = 25000000;
> +int ar7_xtal_clock = 24000000;
> +
> +int ar7_cpu_clock = 150000000;
> +EXPORT_SYMBOL(ar7_cpu_clock);
> +int ar7_bus_clock = 125000000;
Magic constants.
[snip]
> +EXPORT_SYMBOL(ar7_bus_clock);
> +int ar7_dsp_clock = 0;
> +EXPORT_SYMBOL(ar7_dsp_clock);
> +
> +static int gcd(int x, int y)
> +{
> + if (x > y)
> + return (x % y) ? gcd(y, x % y) : y;
> + return (y % x) ? gcd(x, y % x) : x;
> +}
> +
> +static inline int ABS(int x)
> +{
> + return (x >= 0) ? x : -x;
> +}
Isn't that already available in the generic kernel code?
Thiemo
next prev parent reply other threads:[~2007-09-03 15:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-03 13:23 [PATCH 1/7] AR7: core support Matteo Croce
2007-09-03 15:04 ` Thiemo Seufer [this message]
2007-09-03 16:06 ` Geert Uytterhoeven
2007-09-03 22:12 ` Matteo Croce
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070903150444.GC29574@networkno.de \
--to=ths@networkno.de \
--cc=linux-mips@linux-mips.org \
--cc=technoboy85@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox