public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@mvista.com>
To: linux-omap-open-source@linux.omap.com
Subject: [PATCH 3/4] ARM: OMAP: Remove MPU-timer based sched_clock()
Date: Mon, 12 Nov 2007 15:24:04 -0800	[thread overview]
Message-ID: <20071112232414.658134414@mvista.com> (raw)
In-Reply-To: 20071112232401.723638265@mvista.com

[-- Attachment #1: remove-MPU-sched-clock.patch --]
[-- Type: text/plain, Size: 1069 bytes --]

Remove MPU-timer based sched_clock() in favor of the common one based
on 32k sync timer which works across all OMAP1/2/3 platforms.

Using 32k based one also gives a valid sched_clock() very early in the
boot process.

Signed-off-by: Kevin Hilman <khilman@mvista.com>
---
 arch/arm/mach-omap1/time.c |   16 ----------------
 1 file changed, 16 deletions(-)

Index: dev/arch/arm/mach-omap1/time.c
===================================================================
--- dev.orig/arch/arm/mach-omap1/time.c
+++ dev/arch/arm/mach-omap1/time.c
@@ -260,22 +260,6 @@ static void __init omap_init_clocksource
 		printk(err, clocksource_mpu.name);
 }
 
-
-/*
- * Scheduler clock - returns current time in nanosec units.
- */
-unsigned long long sched_clock(void)
-{
-	unsigned long ticks = 0 - omap_mpu_timer_read(1);
-	unsigned long long ticks64;
-
-	ticks64 = omap_mpu_timer2_overflows;
-	ticks64 <<= 32;
-	ticks64 |= ticks;
-
-	return cycles_2_ns(ticks64);
-}
-
 /*
  * ---------------------------------------------------------------------------
  * Timer initialization

--

  parent reply	other threads:[~2007-11-12 23:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-12 23:24 [PATCH 0/4] 32k timer reorg and sched_clock cleanup Kevin Hilman
2007-11-12 23:24 ` [PATCH 1/4] ARM: OMAP: re-organize duplicated 32k-timer code Kevin Hilman
2007-11-12 23:24 ` [PATCH 2/4] ARM: OMAP: Move 32k-based sched_clock() to common code Kevin Hilman
2007-11-12 23:24 ` Kevin Hilman [this message]
2007-11-23 19:18   ` [PATCH 3/4] ARM: OMAP: Remove MPU-timer based sched_clock() Tony Lindgren
2007-11-23 20:26     ` Tony Lindgren
2007-11-26 15:59     ` Kevin Hilman
2007-11-26 18:40       ` Tony Lindgren
2007-11-26 19:30         ` Kevin Hilman
2007-11-26 20:12           ` Tony Lindgren
2007-11-12 23:24 ` [PATCH 4/4] ARM: OMAP: Move timer32k to mach-omap1 Kevin Hilman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071112232414.658134414@mvista.com \
    --to=khilman@mvista.com \
    --cc=linux-omap-open-source@linux.omap.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox