diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-29 15:26:17 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-02-05 11:55:01 +0100 |
commit | 0f9258f2fb7d927bb8b6ab3417a56552204a2b28 (patch) | |
tree | c3bbddca3d4009e6ac96b47eabc093b2643a59b1 /rtemsbsd | |
parent | a0633c51dbd1aa2ba13e9bdd8c8737edb61b953d (diff) |
linux/percpu.h: Fix for uni-processor config
Diffstat (limited to 'rtemsbsd')
-rw-r--r-- | rtemsbsd/powerpc/include/linux/percpu.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rtemsbsd/powerpc/include/linux/percpu.h b/rtemsbsd/powerpc/include/linux/percpu.h index 5a189bc2..6f5ef260 100644 --- a/rtemsbsd/powerpc/include/linux/percpu.h +++ b/rtemsbsd/powerpc/include/linux/percpu.h @@ -30,6 +30,7 @@ #include <linux/cpumask.h> #include <linux/threads.h> +#include <rtems/score/smp.h> #include <rtems/score/threaddispatch.h> #ifdef __cplusplus @@ -43,7 +44,7 @@ extern "C" { (_designator[_cpu]) #define this_cpu_ptr(_designator) \ - (&_designator[_CPU_SMP_Get_current_processor()]) + (&_designator[_SMP_Get_current_processor()]) #define get_cpu_var(_designator) \ (*({ Per_CPU_Control *_cpu_self = _Thread_Dispatch_disable(); \ @@ -56,7 +57,7 @@ extern "C" { ((_ptr) + (_index)) #define raw_cpu_ptr(_ptr) \ - per_cpu_ptr(_ptr, _CPU_SMP_Get_current_processor()) + per_cpu_ptr(_ptr, _SMP_Get_current_processor()) #ifdef __cplusplus } |