kernel_optimize_test/arch/cris/arch-v10/kernel
Jesper Nilsson 60dbd66331 CRIS: GENERIC_TIME fixes
GENERIC_TIME was not functional for CRIS, giving random backward
time jumps.

For CRISv32 implement a new clocksource using the free running counter
and ditch the arch_gettimeoffset.

The random time jumps still existed, but turned out to be the write_seqlock
which was missing around our do_timer() call.

So switch over to GENERIC_TIME using the clocksource for CRISv32.

CRISv10 doesn't have the free running counter needed for the
clocksource trick, but we can still use GENERIC_TIME with
arch_gettimeoffset.

Unfortunately, there were problems in using the prescaler register
to timer0 for the gettimeoffset calculation, so it is now ignored,
making our resolution worse by the tune of 40usec (0.4%) worst case.

At the same time, clean up some formatting and use NSEC_PER_SEC
instead of 1000000000.

Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
2010-08-04 12:58:55 +02:00
..
crisksyms.c [CRIS] Move header files from include to arch/cris/include. 2008-10-29 17:29:44 +01:00
debugport.c [CRIS] Move header files from include to arch/cris/include. 2008-10-29 17:29:44 +01:00
dma.c CRISv10: remove redundant tests on unsigned 2009-06-23 10:05:05 +02:00
entry.S Add generic sys_old_mmap() 2010-03-12 15:52:32 -08:00
fasttimer.c [CRIS] Move header files from include to arch/cris/include. 2008-10-29 17:29:44 +01:00
head.S [CRIS] Move header files from include to arch/cris/include. 2008-10-29 17:29:44 +01:00
io_interface_mux.c [CRIS] Move header files from include to arch/cris/include. 2008-10-29 17:29:44 +01:00
irq.c CRIS: Don't use mask_irq as symbol name 2010-05-25 17:48:14 +02:00
kgdb.c [CRIS] Move header files from include to arch/cris/include. 2008-10-29 17:29:44 +01:00
Makefile [PATCH] CRIS update: drivers 2005-07-27 16:25:59 -07:00
process.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ptrace.c cris arch-v10: use generic ptrace_resume code 2010-03-12 15:52:39 -08:00
setup.c cris: ARRAY_SIZE() cleanup 2007-11-14 18:45:46 -08:00
shadows.c CRIS v10: Remove useless CVS id from kernel/shadows.c 2008-02-08 11:06:31 +01:00
signal.c CRIS v10: correct do_signal to fix oops and clean up signal handling in general 2008-01-14 08:52:23 -08:00
time.c CRIS: GENERIC_TIME fixes 2010-08-04 12:58:55 +02:00
traps.c [CRIS] Move header files from include to arch/cris/include. 2008-10-29 17:29:44 +01:00