19 Dec, 2011
1 commit
-
sched_clock() is yet another blocker on the road to the single
image. This patch implements an idea by Russell King:http://www.spinics.net/lists/linux-omap/msg49561.html
Instead of asking the platform to implement both sched_clock()
itself and the rollover callback, simply register a read()
function, and let the ARM code care about sched_clock() itself,
the conversion to ns and the rollover. sched_clock() uses
this read() function as an indirection to the platform code.
If the platform doesn't provide a read(), the code falls back
to the jiffy counter (just like the default sched_clock).This allow some simplifications and possibly some footprint gain
when multiple platforms are compiled in. Among the drawbacks,
the removal of the *_fixed_sched_clock optimization which could
negatively impact some platforms (sa1100, tegra, versatile
and omap).Tested on 11MPCore, OMAP4 and Tegra.
Cc: Imre Kaloz
Cc: Eric Miao
Cc: Colin Cross
Cc: Erik Gilling
Cc: Olof Johansson
Cc: Sascha Hauer
Cc: Alessandro Rubini
Cc: STEricsson
Cc: Lennert Buytenhek
Cc: Ben Dooks
Tested-by: Jamie Iles
Tested-by: Tony Lindgren
Tested-by: Kyungmin Park
Acked-by: Linus Walleij
Acked-by: Nicolas Pitre
Acked-by: Krzysztof Halasa
Acked-by: Kukjin Kim
Signed-off-by: Marc Zyngier
Signed-off-by: Russell King
24 May, 2011
2 commits
-
Conflicts:
arch/arm/Kconfig
arch/arm/mach-ns9xxx/include/mach/uncompress.h -
Convert ixp4xx, lpc32xx, mxc, netx, pxa, sa1100, tcc8k, tegra and u300
to use the generic mmio clocksource recently introduced.Cc: Imre Kaloz
Cc: Krzysztof Halasa
Acked-by: Eric Miao
Acked-by: "Hans J. Koch"
Acked-by: Colin Cross
Cc: Erik Gilling
Cc: Olof Johansson
Acked-by: Linus Walleij
Acked-by: Sascha Hauer
Signed-off-by: Russell King
19 May, 2011
1 commit
-
Since support for mxc91231 was introduced 2009 it only saw patches that
were part of (mxc or arm) global cleanups. The only supported machine
only had 4 devices (2x UART, sdhc, watchdog).Cc: Dmitriy Taychenachev
LAKML-Reference: 1302211482-17926-1-git-send-email-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König
Signed-off-by: Sascha Hauer
23 Mar, 2011
2 commits
-
Add sched_clock using cyc_to_sched_clock and update_sched_clock
with HAVE_SCHED_CLOCK
tested on iMX27 and iMX35Signed-off-by: Jan Weitzel
Signed-off-by: Sascha Hauer -
this is needed to use get_cycles with sched_clock. Accessing timer
without enabled clk will result in crashSigned-off-by: Jan Weitzel
Signed-off-by: Sascha Hauer
23 Dec, 2010
1 commit
-
In d7e81c2 (clocksource: Add clocksource_register_hz/khz interface) new
interfaces were added which simplify (and optimize) the selection of the
divisor shift/mult constants. Switch over to using this new interface.Acked-by: Sascha Hauer
Signed-off-by: Russell King
23 Apr, 2010
1 commit
-
Commit "mxc: Change gpt timer code to be more generic by using V2
instead of MX3" forgot to replace one occurence causing a build
failure.Signed-off-by: Wolfram Sang
Cc: Amit Kucheria
Cc: Sascha Hauer
Signed-off-by: Sascha Hauer
22 Apr, 2010
1 commit
-
Replace mx3_ with v2_ since the register layout is the same for all SoCs using
version 2 of the timer (mx25, mx31, mx37 and now mx51)Signed-off-by: Amit Kucheria
Signed-off-by: Sascha Hauer
09 Feb, 2010
1 commit
-
Refactor the timer code into version 1 and version 2.
Essentially there are 2 versions of the timer hardware on Freescale MXC
hardware. Version 1 is found on MX1/MXL, MX21 and MX27. Version 2 is found on
MX25, MX31, MX35, MX37, MX51, and future parts.Signed-off-by: Sascha Hauer
Acked-by: Grant Likely
Signed-off-by: Amit Kucheria
14 Aug, 2009
2 commits
-
Signed-off-by: Dmitriy Taychenachev
Signed-off-by: Sascha Hauer -
Signed-off-by: Sascha Hauer
07 Aug, 2009
1 commit
-
Signed-off-by: Sascha Hauer
07 May, 2009
2 commits
-
Signed-off-by: Sascha Hauer
-
Currently we depend on hardcoded base addresses for the timer.
This prevents us from compiling in more than one i.MX architecture
at a time. This patch changes the base address to a runtime
calculated one.Signed-off-by: Sascha Hauer
22 Apr, 2009
1 commit
-
Pass clocksource pointer to the read() callback for clocksources. This
allows us to share the callback between multiple instances.[hugh@veritas.com: fix powerpc build of clocksource pass clocksource mods]
[akpm@linux-foundation.org: cleanup]
Signed-off-by: Magnus Damm
Acked-by: John Stultz
Cc: Thomas Gleixner
Signed-off-by: Hugh Dickins
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
13 Mar, 2009
2 commits
-
Here are some of the warnings that get fixed by this:
> 200 times: warning: cast adds address space to expression ()
twelve times: warning: symbol 'xxx' was not declared. Should it be static
two times: warning: symbol 'clock' shadows an earlier one
five times: warning: incorrect type in initializer (different address spaces)Signed-off-by: Holger Schurig
Signed-off-by: Sascha Hauer -
- rename mxc_clocks_init to architecture specific versions. This
allows us to have more than one architecture compiled in.
- call mxc_timer_init from clock initialisation instead from board
codeSigned-off-by: Sascha Hauer
13 Dec, 2008
1 commit
-
Impact: change calling convention of existing clock_event APIs
struct clock_event_timer's cpumask field gets changed to take pointer,
as does the ->broadcast function.Another single-patch change. For safety, we BUG_ON() in
clockevents_register_device() if it's not set.Signed-off-by: Rusty Russell
Cc: Ingo Molnar
07 Aug, 2008
2 commits
-
This just leaves include/asm-arm/plat-* to deal with.
Signed-off-by: Russell King
-
Remove includes of asm/hardware.h in addition to asm/arch/hardware.h.
Then, since asm/hardware.h only exists to include asm/arch/hardware.h,
update everything to directly include asm/arch/hardware.h and remove
asm/hardware.h.Signed-off-by: Russell King
05 Jul, 2008
1 commit
-
This patch adds timer support for the i.MX machine family. This code can
be used on the following machs:- i.MX1 (tested)
- i.MX2 (i.MX21 (to be tested), i.MX27 (tested))
- i.MX3 (i.MX31 (tested))TODO: It seems impossible to build a kernel for more than one CPU because the
timer do not follow the platform device rules. So it does only work if
timer 1 can be accessed on all CPUs at the same address.Signed-off-by: Juergen Beisert
Signed-off-by: Sascha Hauer