[lkml]   [2005]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC][PATCH] new timeofday arch specific hooks (v. A2)
    On Mon, 2005-01-24 at 14:52 -0800, john stultz wrote:
    > All,
    > This patch implements the minimal architecture specific hooks to enable
    > the new time of day subsystem code for i386, x86-64, and ppc64. It
    > applies on top of my linux-2.6.11-rc1_timeofday-core_A2 patch and with
    > this patch applied, you can test the new time of day subsystem.
    > Basically it adds the call to timeofday_interrupt_hook() and cuts alot
    > of code out of the build via #ifdefs. I know, I know, #ifdefs' are ugly
    > and bad, and the final patch will just remove the old code. For now this
    > allows us to be flexible and easily switch between the two
    > implementations with a single define. Also it makes the patch a bit
    > easier to read.

    I haven't seen your other patch. Do you mean that with this patch, ppc64
    stops using it's own gettimeofday implementation based on the CPU
    hardware timebase ?

    There are reasons why I plan to keep that. First, our implementation is
    very efficient. It allows a timeofday computation without locks or
    barriers thanks to carefully hand crafted data dependencies in the
    operation. Second, we have an ABI issue here. For historical reasons, we
    have this "systemcfg" data structure that can be mmap'ed to userland,
    and which contains copy of some of the ppc64 internal time keeping
    infos. Some userland stuff use it to implement a fully userland
    gettimeofday (again, without barrier nor locks). This is done at least
    by IBM's JVM. My still-to-be-merged vDSO patch will also use this for
    the userland implementation of gettimeofday syscall itself.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:09    [W:0.032 / U:4.476 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site