Limit exposure of non-public microkernel "no-op" API

Hides the existence of _task_nop() from everyone but the
microkernel's no-op subsystem itself. (This change forces the
sample benchmark project that measures no-op performance to
explicitly declare this API itself.)

Change-Id: I0cb2ec32d1c56b10743d5b2e727de2d5a99c95ea
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
This commit is contained in:
Allan Stephens 2015-05-11 15:53:33 -04:00 committed by Anas Nashif
commit 678a2a90bd
2 changed files with 4 additions and 2 deletions

View file

@ -63,8 +63,6 @@ extern "C" {
#define MON_EVENT 8
#define MON_ALL 15
extern void _task_nop(void);
extern int task_offload_to_fiber(int (*)(), void *);
/* The following two typedefs are used in kernel_main.c */

View file

@ -34,6 +34,10 @@
#ifdef MICROKERNEL_CALL_BENCH
/* utilize non-public microkernel API for test purposes */
extern void _task_nop(void);
/*******************************************************************************
*
* call_test - Kernel entry timing test