Re: [PATCH] use CONFIG_HZ

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux