source: rtems/cpukit/include/rtems/rtems/smp.h @ 03c9f24

5
Last change on this file since 03c9f24 was 03c9f24, checked in by Sebastian Huber <sebastian.huber@…>, on 04/05/19 at 06:03:12

rtems: Add rtems_scheduler_get_processor()

Add rtems_scheduler_get_processor() as a replacement for
rtems_get_current_processor(). The rtems_get_current_processor() is a
bit orphaned. Adopt it by the Scheduler Manager. This is in line with
the glibc sched_getcpu() function.

Deprecate rtems_get_current_processor().

Update #3731.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup ClassicSMP
5 *
6 * @brief SMP Services API
7 */
8
9/*
10 * COPYRIGHT (c) 1989-2011.
11 * On-Line Applications Research Corporation (OAR).
12 *
13 * The license and distribution terms for this file may be
14 * found in the file LICENSE in this distribution or at
15 * http://www.rtems.org/license/LICENSE.
16 */
17
18#ifndef _RTEMS_RTEMS_SMP_H
19#define _RTEMS_RTEMS_SMP_H
20
21#include <stdint.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27/**
28 * @defgroup ClassicSMP SMP Services
29 *
30 * @ingroup RTEMSAPIClassic
31 *
32 * This encapsulates functionality which is useful for SMP applications.
33 *
34 * @{
35 */
36
37/**
38 * @brief Returns the count of processors in the system.
39 *
40 * On uni-processor configurations a value of one will be returned.
41 *
42 * On SMP configurations this returns the value of a global variable set during
43 * system initialization to indicate the count of utilized processors.  The
44 * processor count depends on the physically or virtually available processors
45 * and application configuration.  The value will always be less than or equal
46 * to the maximum count of application configured processors.
47 *
48 * @return The count of processors being utilized.
49 */
50uint32_t rtems_get_processor_count(void);
51
52/** @} */
53
54#ifdef __cplusplus
55}
56#endif
57
58#endif
59/* end of include file */
Note: See TracBrowser for help on using the repository browser.