lkml.org 
[lkml]   [2008]   [Jul]   [28]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateMon, 28 Jul 2008 11:10:46 +0200
FromClemens Ladisch <>
SubjectRe: [patch 2.6.26-git] /dev/hpet - fixes and cleanup
David Brownell wrote:
> Oh ... I see.  It's called write_counter() but doesn't
> actually write the counter.  Likewise, read_counter() is
> not actually reading the counter.  Gaack ...

A more correct name would be something like
write_a_register_that_has_the_same_size_as_a_counter_register().

> In fact, most places would be better off just hard-wiring 32-bit
> access...

... and the definition of read/write_counter() depends on the word size
of the CPU architecture and has nothing to do with the actual size of
the HPET registers ...

I'm hoping that I can deprecate and delete much of this code without
having to clean it up first.

> Any comments on the rest?

Looks fine.  I would have preferred a series of smaller patches, but my
feelings on this are not strong enough to split it myself or to ask you
to do it.


Regards,
Clemens


\
 
 \ /
  Last update: 2008-07-28 11:13    [from the cache]
©2003-2008