public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk@arm.linux.org.uk>
To: LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH] 2.5.43-tick
Date: Thu, 17 Oct 2002 11:45:30 +0100	[thread overview]
Message-ID: <E18289i-0007u2-00@flint.arm.linux.org.uk> (raw)

This patch appears not to be in 2.5.43, but applies cleanly.

On some ARM platforms, CLOCK_TICK_RATE is not a constant (it is specified
at boot time), which means that TICK_USEC/TICK_NSEC is not constant.
We therefore can not initialise static variables with these definitions;
they must be done at run time.

 kernel/timer.c |    7 +++++--
 1 files changed, 5 insertions, 2 deletions

diff -ur orig/kernel/timer.c linux/kernel/timer.c
--- orig/kernel/timer.c	Wed Oct 16 09:17:13 2002
+++ linux/kernel/timer.c	Wed Oct 16 09:15:00 2002
@@ -376,8 +376,8 @@
 /*
  * Timekeeping variables
  */
-unsigned long tick_usec = TICK_USEC; 		/* ACTHZ   period (usec) */
-unsigned long tick_nsec = TICK_NSEC(TICK_USEC);	/* USER_HZ period (nsec) */
+unsigned long tick_usec;	/* ACTHZ   period (usec) */
+unsigned long tick_nsec;	/* USER_HZ period (nsec) */
 
 /* The current time */
 struct timespec xtime __attribute__ ((aligned (16)));
@@ -1069,6 +1069,9 @@
 void __init init_timers(void)
 {
 	int i, j;
+
+	tick_usec = TICK_USEC;
+	tick_nsec = TICK_NSEC(TICK_USEC);
 
 	for (i = 0; i < NR_CPUS; i++) {
 		tvec_base_t *base;


             reply	other threads:[~2002-10-17 10:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-17 10:45 Russell King [this message]
2002-10-17 16:32 ` [PATCH] 2.5.43-tick george anzinger

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=E18289i-0007u2-00@flint.arm.linux.org.uk \
    --to=rmk@arm.linux.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    /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