Skip to contentSkip to conversation

Shrink the held_lock struct by using bitfields.

DISCUSSION Bodo Eggert 2 participants 2 messages Jan 3, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 7 lines · Dave Jones

Shrink the held_lock struct by using bitfields.
This shrinks task_struct on lockdep enabled kernels by 480 bytes.

* The following field is used to detect when we cross into an
* interrupt context:
*/
- int irq_context;

[...]

Quoted 1 line

+ unsigned char irq_context:1;

[...]

Can these fields be set by concurrent processes, e.g.:
CPU0 CPU1
load flags
load flags
flip bit
store
flip bit
store

?

Signature · 4 lines
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF
verbreiteten Lügen zu sabotieren.

http://david.woodhou.se/why-not-spf.html
#2 lore raw
Quoted 13 lines · Bodo Eggert
Quoted 7 lines · Dave Jones

Shrink the held_lock struct by using bitfields.
This shrinks task_struct on lockdep enabled kernels by 480 bytes.

* The following field is used to detect when we cross into an
* interrupt context:
*/
- int irq_context;

[...]

Quoted 1 line

+ unsigned char irq_context:1;

[...]

Quoted 8 lines

Can these fields be set by concurrent processes, e.g.:
CPU0 CPU1
load flags
load flags
flip bit
store
flip bit
store

It's a per-process structure.

Dave

Signature · 1 line
http://www.codemonkey.org.uk