Re: [PATCH 1/2] include: add new file for cache-related definitions

2014-01-08 Thread Samuel Thibault
Justus Winter, le Tue 07 Jan 2014 15:51:27 +0100, a écrit : * include/cache.h (__cacheline_aligned): This macro can be used to align statically allocated objects so that they start at a cache line. Ack. You could already use it in kern/slab.h --- include/cache.h | 25

Re: [PATCH 1/2] include: add new file for cache-related definitions

2014-01-08 Thread Ivan Shmakov
Justus Winter 4win...@informatik.uni-hamburg.de writes: Date: Tue, 7 Jan 2014 15:51:27 +0100 […] --- /dev/null +++ b/include/cache.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2013 Free Software Foundation. … Which makes me wonder if the boilerplate has to be updated. […]

Re: [PATCH 1/2] include: add new file for cache-related definitions

2014-01-08 Thread Thomas Schwinge
On Thu, 09 Jan 2014 01:30:42 +, Ivan Shmakov i...@siamics.net wrote: Justus Winter 4win...@informatik.uni-hamburg.de writes: Date: Tue, 7 Jan 2014 15:51:27 +0100 […] --- /dev/null +++ b/include/cache.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2013 Free Software

[PATCH 1/2] include: add new file for cache-related definitions

2014-01-07 Thread Justus Winter
* include/cache.h (__cacheline_aligned): This macro can be used to align statically allocated objects so that they start at a cache line. --- include/cache.h | 25 + 1 file changed, 25 insertions(+) create mode 100644 include/cache.h diff --git a/include/cache.h