mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-17 02:28:17 +08:00
Linux update to 4.11-rc5
Linux baseline a71c9a1c779f2499fb2afc0553e543f18aff6edf (4.11-rc5).
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#ifndef _LINUX_PERCPU_H
|
||||
#define _LINUX_PERCPU_H
|
||||
|
||||
#include <linux/cpumask.h>
|
||||
#include <linux/threads.h>
|
||||
|
||||
#include <rtems/score/threaddispatch.h>
|
||||
@@ -41,8 +42,8 @@ extern "C" {
|
||||
#define per_cpu(_designator, _cpu) \
|
||||
(_designator[_cpu])
|
||||
|
||||
#define this_cpu_ptr(_ptr_designator) \
|
||||
(&(*_ptr_designator)[_CPU_SMP_Get_current_processor()])
|
||||
#define this_cpu_ptr(_designator) \
|
||||
(&_designator[_CPU_SMP_Get_current_processor()])
|
||||
|
||||
#define get_cpu_var(_designator) \
|
||||
(*({ Per_CPU_Control *_cpu_self = _Thread_Dispatch_disable(); \
|
||||
|
Reference in New Issue
Block a user