diff options
Diffstat (limited to 'include/linux/percpu.h')
| -rw-r--r-- | include/linux/percpu.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h index 522f421ec213..e12410e55e05 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h | |||
| @@ -182,7 +182,7 @@ static inline void *pcpu_lpage_remapped(void *kaddr) | |||
| 182 | #ifndef percpu_read | 182 | #ifndef percpu_read |
| 183 | # define percpu_read(var) \ | 183 | # define percpu_read(var) \ |
| 184 | ({ \ | 184 | ({ \ |
| 185 | typeof(per_cpu_var(var)) __tmp_var__; \ | 185 | typeof(var) __tmp_var__; \ |
| 186 | __tmp_var__ = get_cpu_var(var); \ | 186 | __tmp_var__ = get_cpu_var(var); \ |
| 187 | put_cpu_var(var); \ | 187 | put_cpu_var(var); \ |
| 188 | __tmp_var__; \ | 188 | __tmp_var__; \ |
| @@ -253,8 +253,7 @@ do { \ | |||
| 253 | 253 | ||
| 254 | /* | 254 | /* |
| 255 | * Optimized manipulation for memory allocated through the per cpu | 255 | * Optimized manipulation for memory allocated through the per cpu |
| 256 | * allocator or for addresses of per cpu variables (can be determined | 256 | * allocator or for addresses of per cpu variables. |
| 257 | * using per_cpu_var(xx). | ||
| 258 | * | 257 | * |
| 259 | * These operation guarantee exclusivity of access for other operations | 258 | * These operation guarantee exclusivity of access for other operations |
| 260 | * on the *same* processor. The assumption is that per cpu data is only | 259 | * on the *same* processor. The assumption is that per cpu data is only |
