• Linus Walleij's avatar
    ARM: 5704/1: U300 sched_clock implementation v2 · a2ca00ea
    Linus Walleij authored
    This adds the long debated sched_clock() override for the weak
    in-kernel jiffybased sched_clock(). The implementation is more or
    less identical to the one used in arch/arm/plat-omap/common.c
    and at last attempt to merge this the merge was postponed at the
    request of Peter Zijlstra due to pending discussions regarding
    generalized clocksource-based sched_clock() implementations by
    adding a flag to the clocksource. However that discussion ended
    up with the generic code needing to be rewritten and Paul Mundt
    see no reason not to proceed with this for the time being as it
    can be easily converted once the generic code is in place.
    
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Paul Mundt <lethal@linux-sh.org>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@stericsson.com>
    Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
    a2ca00ea
timer.c 16.7 KB