|
@@ -46,7 +46,7 @@
|
|
|
|
|
|
#ifdef CONFIG_SMP
|
|
#ifdef CONFIG_SMP
|
|
#define __percpu_prefix "%%"__stringify(__percpu_seg)":"
|
|
#define __percpu_prefix "%%"__stringify(__percpu_seg)":"
|
|
-#define __my_cpu_offset percpu_read(this_cpu_off)
|
|
|
|
|
|
+#define __my_cpu_offset this_cpu_read(this_cpu_off)
|
|
|
|
|
|
/*
|
|
/*
|
|
* Compared to the generic __my_cpu_offset version, the following
|
|
* Compared to the generic __my_cpu_offset version, the following
|
|
@@ -352,15 +352,15 @@ do { \
|
|
|
|
|
|
/*
|
|
/*
|
|
* percpu_read() makes gcc load the percpu variable every time it is
|
|
* percpu_read() makes gcc load the percpu variable every time it is
|
|
- * accessed while percpu_read_stable() allows the value to be cached.
|
|
|
|
- * percpu_read_stable() is more efficient and can be used if its value
|
|
|
|
|
|
+ * accessed while this_cpu_read_stable() allows the value to be cached.
|
|
|
|
+ * this_cpu_read_stable() is more efficient and can be used if its value
|
|
* is guaranteed to be valid across cpus. The current users include
|
|
* is guaranteed to be valid across cpus. The current users include
|
|
* get_current() and get_thread_info() both of which are actually
|
|
* get_current() and get_thread_info() both of which are actually
|
|
* per-thread variables implemented as per-cpu variables and thus
|
|
* per-thread variables implemented as per-cpu variables and thus
|
|
* stable for the duration of the respective task.
|
|
* stable for the duration of the respective task.
|
|
*/
|
|
*/
|
|
#define percpu_read(var) percpu_from_op("mov", var, "m" (var))
|
|
#define percpu_read(var) percpu_from_op("mov", var, "m" (var))
|
|
-#define percpu_read_stable(var) percpu_from_op("mov", var, "p" (&(var)))
|
|
|
|
|
|
+#define this_cpu_read_stable(var) percpu_from_op("mov", var, "p" (&(var)))
|
|
#define percpu_write(var, val) percpu_to_op("mov", var, val)
|
|
#define percpu_write(var, val) percpu_to_op("mov", var, val)
|
|
#define percpu_add(var, val) percpu_add_op(var, val)
|
|
#define percpu_add(var, val) percpu_add_op(var, val)
|
|
#define percpu_sub(var, val) percpu_add_op(var, -(val))
|
|
#define percpu_sub(var, val) percpu_add_op(var, -(val))
|