2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 22:24:09 +08:00
linux-next/arch/cris/arch-v32
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
..
drivers CRISv32: Fix RS485 port 4 CD Kconfig item. 2010-05-25 13:35:31 +02:00
kernel CRIS: GENERIC_TIME fixes 2010-08-04 12:58:55 +02:00
lib CRISv32: Add arch optimized strcmp. 2009-06-10 15:21:03 +02:00
mach-a3 CRIS v32: Should index be positive? 2009-11-03 14:11:53 +01:00
mach-fs cris v32: typo in crisv32_arbiter_unwatch()? 2010-03-06 11:26:28 -08:00
mm Merge branch 'for-next' into for-linus 2010-03-08 16:55:37 +01:00
Kconfig trivial: fix typos/grammar errors in Kconfig texts 2009-03-30 15:22:01 +02:00
output_arch.ld [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00