Thread (65 messages) 65 messages, 8 authors, 2013-01-17

Re: [RFC Patch v1 32/55] ARC: [optim] Cache "current" in Register r25

From: Arnd Bergmann <arnd@arndb.de>
Date: 2012-11-12 13:50:28
Also in: lkml

On Monday 12 November 2012, Vineet.Gupta1@synopsys.com wrote:
 endmenu # "Platform Board Configuration"
 
+config ARC_CURR_IN_REG
+       bool "Dedicate Register r25 for current_task pointer"
+       default y
+       help
+         This reserved Register R25 to point to Current Task in
+         kernel mode. This saves memory access for each such access
+
This looks like a useful feature if you have 32 GPRs, but why make it
optional? Are there cases where you would disable it?

Another alternative to caching "current" would be to cache the per-cpu
offset, and calculate current from that one.

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help