Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: "Maciej W. Rozycki" <macro@linux-mips.org>
Cc: Atsushi Nemoto <anemo@mba.ocn.ne.jp>, linux-mips@linux-mips.org
Subject: Re: [PATCH] use CONFIG_HZ
Date: Fri, 7 Apr 2006 12:53:24 +0100	[thread overview]
Message-ID: <20060407115323.GB5909@linux-mips.org> (raw)
In-Reply-To: <Pine.LNX.4.64N.0604071156350.25570@blysk.ds.pg.gda.pl>

On Fri, Apr 07, 2006 at 12:18:03PM +0100, Maciej W. Rozycki wrote:

> > Make HZ configurable (except for DECSTATION which is using special HZ
> > value which is out of choice).  Also remove some param.h files and
> 
>  The DECstation could actually use a choice of 128Hz, 256Hz and 1024Hz if 
> anybody cared.

Well, instead of the stock Kconfig.hz we maybe should use our own like
this:

config MACH_DECSTATION
	bool
	select SYS_SUPPORT_128HZ
	select SYS_SUPPORT_256HZ
	select SYS_SUPPORT_1024HZ

config MACH_JAZZ
	bool "Support for the Jazz family of machines"
	select SYS_SUPPORT_100HZ
	...

config MACH_CUCUBER
	...
...

choice
config HZ_48
	bool "48Hz" if SYS_SUPPORT_48HZ
	help
	  Useful for debugging of Linux on extremly slow hardware simulators.
	...
config HZ_100
	bool "100Hz" if SYS_SUPPORT_100HZ
	help
	  blah
	...
config HZ_128
	bool "128Hz" if SYS_SUPPORT_128HZ
	...
config HZ_250
	bool "250Hz" if SYS_SUPPORT_250HZ
	...
config HZ_256
	bool "256Hz" if SYS_SUPPORT_256HZ
	...
config HZ_1000
	bool "1000Hz" if SYS_SUPPORT_1000HZ
	...
config HZ_1024
	bool "1024Hz" if SYS_SUPPORT_1024HZ
	...
endchoice

config HZ
	int
	default 48 if HZ_48
	default 100 if HZ_100
	default 128 if HZ_128
	default 250 if HZ_250
	default 256 if HZ_256
	default 1000 if HZ_1000
	default 1024 if HZ_1024

What do you think?

  Ralf

  reply	other threads:[~2006-04-07 13:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-06 16:10 [PATCH] use CONFIG_HZ Atsushi Nemoto
2006-04-06 18:02 ` Ralf Baechle
2006-04-07 11:18 ` Maciej W. Rozycki
2006-04-07 11:53   ` Ralf Baechle [this message]
2006-04-07 16:03     ` Atsushi Nemoto
2006-04-07 16:46       ` Maciej W. Rozycki
2006-04-07 17:04         ` Ralf Baechle
2006-04-08 15:29           ` Atsushi Nemoto
2006-04-25 14:31             ` Atsushi Nemoto
2006-06-19 15:19               ` Atsushi Nemoto

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=20060407115323.GB5909@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=anemo@mba.ocn.ne.jp \
    --cc=linux-mips@linux-mips.org \
    --cc=macro@linux-mips.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