From: Detlef Vollmann <dv@vollmann.ch>
To: u-boot@lists.denx.de
Subject: [U-Boot] CONFIG_SYS_HZ: Please revert breaking net commit
Date: Tue, 24 Feb 2009 20:18:30 +0100 [thread overview]
Message-ID: <49A44806.9050902@vollmann.ch> (raw)
Hello,
From CHANGELOG:
<quote>
commit 49f3bdbba8071f56d950a9498b6cdb998b35340a
Author: Bartlomiej Sieka <tur@semihalf.com>
Date: Wed Oct 1 15:26:28 2008 +0200
net: express the first argument to NetSetTimeout() in milliseconds
Enforce millisecond semantics of the first argument to
NetSetTimeout() --
the change is transparent for well-behaving boards (CFG_HZ == 1000 and
get_timer() countiing in milliseconds).
Rationale for this patch is to enable millisecond granularity for
network-related timeouts, which is needed for the upcoming automatic
software update feature.
Summary of changes:
- do not scale the first argument to NetSetTimeout() by CFG_HZ
- change timeout values used in the networking code to milliseconds
Signed-off-by: Rafal Czubak <rcz@semihalf.com>
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
</quote>
This commit breaks *silently* all boards that don't return
milliseconds from get_timer, i.e. have a different value for
CONFIG_SYS_HZ than 1000.
I'm open to any discussion about removing CONFIG_SYS_HZ, but
if it is removed, it should be removed explicitely, and not
just silently ignored.
So I see following reasons to revert the above commit:
- silently breaks existing boards
- silently ignores a still valid CONFIG setting
- bad programming style anyway: even if CONFIG_SYS_HZ would
go away, there should be some internal define that should
be used in code
- the intended benefit 'millisecond granularity for network-related
timeouts' can be achieved while still keeping CONFIG_SYS_HZ
Best Regards,
Detlef
--
Detlef Vollmann vollmann engineering gmbh
Linux and C++ for Embedded Systems http://www.vollmann.ch/
next reply other threads:[~2009-02-24 19:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-24 19:18 Detlef Vollmann [this message]
2009-02-24 21:29 ` [U-Boot] CONFIG_SYS_HZ: Please revert breaking net commit Wolfgang Denk
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=49A44806.9050902@vollmann.ch \
--to=dv@vollmann.ch \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.