Skip to contentSkip to conversation

Linux 2.5.68-ce2

PATCH Chuck Ebbert 1 participant 1 message Apr 22, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 10 lines · Jvrn Engel

How about the following?

(quoted diff) +3 -1
+#include <linux/cache.h>
+#define CACHELINE_ALIGN .align L1_CACHE_BYTES,0x90
...
-	ALIGN
+	CACHELINE_ALIGN
...

Or was this a bad guess of what you wanted to do?

With 32-byte cachelines it woulf probably be too much wasted
space -- the handlers are only 10 bytes long at worst and some of them are only 7 bytes. Maybe packing three of them per cacheline might work better in that case?

-------
Chuck