summaryrefslogtreecommitdiffstats
path: root/cpukit/include/machine/_kernel_cpuset.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/include/machine/_kernel_cpuset.h')
-rw-r--r--cpukit/include/machine/_kernel_cpuset.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/cpukit/include/machine/_kernel_cpuset.h b/cpukit/include/machine/_kernel_cpuset.h
index 22a245e037..1164494b9e 100644
--- a/cpukit/include/machine/_kernel_cpuset.h
+++ b/cpukit/include/machine/_kernel_cpuset.h
@@ -1,13 +1,16 @@
/* SPDX-License-Identifier: BSD-2-Clause */
/**
- * @file
+ * @file
*
- * @brief
+ * @ingroup RTEMSImplFreeBSDKernel
+ *
+ * @brief This header file provides CPU set definitions for the kernel space
+ * (_KERNEL is defined before including <sys/cpuset.h>).
*/
/*
- * Copyright (C) 1989-1998 On-Line Applications Research Corporation (OAR).
+ * Copyright (C) 2016 embedded brains GmbH & Co. KG
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -30,3 +33,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
+
+#if !defined(_SYS_CPUSET_H_) || !defined(_KERNEL)
+#error "must be included via <sys/cpuset.h> in kernel space"
+#endif