linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [patch 00/16] arm: Replace arm sched_clock by clocksource based sched_clock
@ 2011-04-23 20:54 Thomas Gleixner
  2011-04-23 20:54 ` [patch 01/16] time: Provide clocksource based sched_clock() Thomas Gleixner
                   ` (18 more replies)
  0 siblings, 19 replies; 51+ messages in thread
From: Thomas Gleixner @ 2011-04-23 20:54 UTC (permalink / raw)
  To: linux-arm-kernel

Most of ARM sched_clocks is using the timekeeping clocksource as the
sched_clock. Only versatile uses a different clock for it, but there
is no real reason why it can't use the clocksource as well.

The core timekeeping code makes already sure that we don't wrap the
timekeeper and we can base a sched_clock easily on that.

It uses the read function of the clocksource and keeps track of time
independent of the timekeeping code as the ARM sched_clock
implementation does. It also uses it's own sequence counter so
sched_clock is not dependent on xtime_lock. The update sequence is
just adding offsets once in a while and runs from do_timer() which
also makes sure that only one core tries to update it.

Only lightly tested on orion. Please give it a go.

Another 650 lines gone :)

Thanks,

	tglx
---
 arch/arm/include/asm/sched_clock.h                     |  120 ----------------
 arch/arm/kernel/sched_clock.c                          |   74 ----------
 arch/arm/plat-versatile/include/plat/sched_clock.h     |    6 
 arch/arm/plat-versatile/sched-clock.c                  |   58 -------
 linux-2.6-tip/arch/arm/Kconfig                         |   15 --
 linux-2.6-tip/arch/arm/common/timer-sp.c               |    4 
 linux-2.6-tip/arch/arm/kernel/Makefile                 |    1 
 linux-2.6-tip/arch/arm/kernel/time.c                   |    4 
 linux-2.6-tip/arch/arm/mach-davinci/time.c             |   30 ----
 linux-2.6-tip/arch/arm/mach-integrator/integrator_cp.c |    5 
 linux-2.6-tip/arch/arm/mach-ixp4xx/common.c            |   22 --
 linux-2.6-tip/arch/arm/mach-mmp/time.c                 |   19 --
 linux-2.6-tip/arch/arm/mach-omap1/time.c               |   62 --------
 linux-2.6-tip/arch/arm/mach-omap2/timer-gp.c           |   17 --
 linux-2.6-tip/arch/arm/mach-pxa/time.c                 |   31 ----
 linux-2.6-tip/arch/arm/mach-realview/core.c            |    3 
 linux-2.6-tip/arch/arm/mach-sa1100/time.c              |   35 ----
 linux-2.6-tip/arch/arm/mach-tegra/timer.c              |   29 ---
 linux-2.6-tip/arch/arm/mach-u300/timer.c               |   29 ---
 linux-2.6-tip/arch/arm/mach-versatile/core.c           |    3 
 linux-2.6-tip/arch/arm/mach-vexpress/v2m.c             |    3 
 linux-2.6-tip/arch/arm/plat-iop/time.c                 |   22 --
 linux-2.6-tip/arch/arm/plat-mxc/time.c                 |   28 ---
 linux-2.6-tip/arch/arm/plat-nomadik/Kconfig            |    1 
 linux-2.6-tip/arch/arm/plat-nomadik/timer.c            |   45 ------
 linux-2.6-tip/arch/arm/plat-omap/counter_32k.c         |   71 ---------
 linux-2.6-tip/arch/arm/plat-omap/dmtimer.c             |    4 
 linux-2.6-tip/arch/arm/plat-omap/include/plat/common.h |    1 
 linux-2.6-tip/arch/arm/plat-orion/time.c               |   37 -----
 linux-2.6-tip/arch/arm/plat-s5p/s5p-time.c             |   67 ---------
 linux-2.6-tip/arch/arm/plat-versatile/Kconfig          |    4 
 linux-2.6-tip/arch/arm/plat-versatile/Makefile         |    1 
 linux-2.6-tip/include/linux/clocksource.h              |    1 
 linux-2.6-tip/include/linux/sched.h                    |    1 
 linux-2.6-tip/kernel/sched_clock.c                     |   12 -
 linux-2.6-tip/kernel/time/Kconfig                      |    4 
 linux-2.6-tip/kernel/time/timekeeping.c                |  125 +++++++++++++++++
 37 files changed, 173 insertions(+), 821 deletions(-)

^ permalink raw reply	[flat|nested] 51+ messages in thread

end of thread, other threads:[~2011-06-13  2:32 UTC | newest]

Thread overview: 51+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-23 20:54 [patch 00/16] arm: Replace arm sched_clock by clocksource based sched_clock Thomas Gleixner
2011-04-23 20:54 ` [patch 01/16] time: Provide clocksource based sched_clock() Thomas Gleixner
2011-04-23 21:33   ` Stephen Boyd
2011-04-23 21:40     ` Thomas Gleixner
2011-04-25  7:10   ` Kukjin Kim
2011-04-26 16:36   ` Stephen Boyd
2011-04-23 20:54 ` [patch 02/16] arm: plat-orion: Use clocksource based sched_clock Thomas Gleixner
2011-04-23 20:54 ` [patch 03/16] arm: s5p: " Thomas Gleixner
2011-04-23 21:33   ` Stephen Boyd
2011-04-23 21:41     ` Thomas Gleixner
2011-04-25  7:08   ` Kukjin Kim
2011-04-23 20:54 ` [patch 04/16] arm: davinci: " Thomas Gleixner
2011-04-26 15:40   ` Nori, Sekhar
2011-04-23 20:54 ` [patch 05/16] arm: ixp4xx: " Thomas Gleixner
2011-04-23 20:54 ` [patch 06/16] arm: mmp: " Thomas Gleixner
2011-04-23 20:54 ` [patch 07/16] arm: omap: " Thomas Gleixner
2011-04-29 11:57   ` Tony Lindgren
2011-04-29 12:28     ` Thomas Gleixner
2011-04-29 12:51       ` Tony Lindgren
2011-04-29 14:19         ` Thomas Gleixner
2011-05-02  8:10           ` Tony Lindgren
2011-04-23 20:54 ` [patch 08/16] arm: pxa: " Thomas Gleixner
2011-04-25 16:25   ` Eric
2011-04-26  7:23     ` Sascha Hauer
2011-04-26  7:26       ` Eric Miao
2011-04-23 20:54 ` [patch 09/16] arm: sa1100: " Thomas Gleixner
2011-04-23 20:54 ` [patch 10/16] arm: tegra: " Thomas Gleixner
2011-04-23 20:54 ` [patch 11/16] arm: u300: " Thomas Gleixner
2011-04-24  7:03   ` Linus Walleij
2011-04-23 20:54 ` [patch 12/16] arm: plat-iop: " Thomas Gleixner
2011-04-23 20:54 ` [patch 13/16] arm plat-mxc: " Thomas Gleixner
2011-04-26  7:23   ` Sascha Hauer
2011-04-23 20:54 ` [patch 14/16] arm: nomadik: " Thomas Gleixner
2011-04-24  7:04   ` Linus Walleij
2011-04-23 20:54 ` [patch 15/16] arm: versatile: " Thomas Gleixner
2011-04-23 20:54 ` [patch 16/16] arm: Remove sched_clock code Thomas Gleixner
2011-04-25  7:11   ` Kukjin Kim
2011-04-24  7:27 ` [patch 00/16] arm: Replace arm sched_clock by clocksource based sched_clock Linus Walleij
2011-04-25 19:10   ` john stultz
2011-04-26  7:45     ` Linus Walleij
2011-04-26  8:50       ` Tony Lindgren
2011-04-26  8:02   ` Thomas Gleixner
2011-04-29  9:46 ` Russell King - ARM Linux
2011-04-29 10:22   ` Thomas Gleixner
2011-04-29 10:32     ` Tony Lindgren
2011-04-29 17:01       ` Thomas Gleixner
2011-04-29 21:53         ` Linus Walleij
2011-04-29 21:57           ` Thomas Gleixner
2011-05-02  8:18             ` Tony Lindgren
2011-05-08 20:34             ` Linus Walleij
2011-06-13  2:32 ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).