From: Michal Simek <monstr@monstr.eu>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] nios2: Set CONFIG_SYS_HZ to 1000 all nios2 boards.
Date: Thu, 01 Apr 2010 18:59:47 +0200 [thread overview]
Message-ID: <4BB4D103.8000108@monstr.eu> (raw)
In-Reply-To: <4BB4879D.9050306@psyent.com>
Scott McNutt wrote:
>
>
> Michal Simek wrote:
>> Scott McNutt wrote:
>>> CONFIG_SYS_HZ was being calculated (incorrectly) in nios2
>>> configuration
>>> headers. Updated comments to accurately describe timebase macros.
>>>
>>> Signed-off-by: Scott McNutt <smcnutt@psyent.com>
>>> ---
>>> include/configs/EP1C20.h | 14 ++++++++------
>>> include/configs/EP1S10.h | 14 ++++++++------
>>> include/configs/EP1S40.h | 14 ++++++++------
>>> include/configs/PCI5441.h | 14 ++++++++------
>>> include/configs/PK1C20.h | 14 ++++++++------
>>> 5 files changed, 40 insertions(+), 30 deletions(-)
>>
>> This is the next "nice" patch around altera boards.
>
> Agreed.
>
>> If you do the same changes (because of the same reason) in 5 files it
>> points me that something is wrong.
>
> IMO, it is inefficient, not wrong. But only because each of these
> boards worked fine ... until some things changed externally ... that
> required a common resolution.
I don't have anything against the purpose that patch because fix the
real issue. I have just problem with that style of doing it.
I am really not sure what you mean by "until some things changed
externally"!
>
>> Please create one generic nios2 file and move there these common
>> macros. Look at ppc405/440 which use that style.
>
> It would indeed be more efficient -- perhaps a common header for
> the Altera boards when time permits.
:-) It is not just to be more efficient.
1. Save u-boot size
2. If is only one place where it is defined than you don't need to spend
time to fix all boards which are very similar. It is more bug-free solution.
Regards,
Michal
>
> Regards,
> --Scott
>
--
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian
next prev parent reply other threads:[~2010-04-01 16:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-31 1:00 [U-Boot] [PATCH] nios2: Set CONFIG_SYS_HZ to 1000 all nios2 boards Scott McNutt
2010-04-01 7:23 ` Michal Simek
2010-04-01 11:46 ` Scott McNutt
2010-04-01 16:59 ` Michal Simek [this message]
2010-04-02 1:15 ` Scott McNutt
-- strict thread matches above, loose matches on Subject: below --
2010-03-31 2:09 Scott McNutt
2010-03-31 3:04 ` Thomas Chou
2010-03-31 4:14 ` Scott McNutt
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=4BB4D103.8000108@monstr.eu \
--to=monstr@monstr.eu \
--cc=u-boot@lists.denx.de \
/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