login
Header Space

 
 

Re: [patch 12/17] Immediate Values - Kconfig menu in EMBEDDED

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mathieu Desnoyers <mathieu.desnoyers@...>
Cc: <akpm@...>, Ingo Molnar <mingo@...>, <linux-kernel@...>, Andi Kleen <andi@...>, Adrian Bunk <bunk@...>, Christoph Hellwig <hch@...>, <akpm@...>
Date: Wednesday, April 9, 2008 - 11:23 pm

On Thursday 10 April 2008 01:08:41 Mathieu Desnoyers wrote:

Wouldn't it be simlpler to roll DISABLE_IMMEDIATE into this?

ie.
	default y
	depends on HAVE_IMMEDIATE
	bool "Immediate value optimization" if EMBEDDED
	help
	  Immediate values are used as read-mostly variables that are rarely
	  updated. They use code patching to modify the values inscribed in the
	  instruction stream. It provides a way to save precious cache lines
	  that would otherwise have to be used by these variables.

	  It consumes slightly more memory and requires to modify the instruction
	  stream each time a variable is updated. Should really be disabled for
	  embedded systems with read-only text.

Cheers,
Rusty.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 12/17] Immediate Values - Kconfig menu in EMBEDDED, Mathieu Desnoyers, (Wed Apr 9, 11:08 am)
Re: [patch 12/17] Immediate Values - Kconfig menu in EMBEDDED, Rusty Russell, (Wed Apr 9, 11:23 pm)
Re: [patch 12/17] Immediate Values - Kconfig menu in EMBEDDE..., Mathieu Desnoyers, (Thu Apr 10, 3:32 pm)
Re: [patch 12/17] Immediate Values - Kconfig menu in EMBEDDE..., Mathieu Desnoyers, (Mon Apr 14, 7:52 pm)
speck-geostationary