diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-09-22 13:42:26 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-09-23 10:03:10 +0200 |
commit | be43b79fcabb7551677e2d27c75e2a500e2ba622 (patch) | |
tree | adacb76593743ee5bf58d0ea5df2db97880b5d5a /freebsd/sys/sys/_lock.h | |
parent | Include missing header file (diff) | |
download | rtems-libbsd-be43b79fcabb7551677e2d27c75e2a500e2ba622.tar.bz2 |
Replace RTEMS objects with custom implementation
Performance analysis revealed that the standard RTEMS objects are a
major bottleneck. The object get mechanism and attribute checks at
runtime have a significant overhead. Use a custom implementation for
synchronization primitives. This drops also the size of the
synchronization primitives considerably.
Diffstat (limited to 'freebsd/sys/sys/_lock.h')
-rw-r--r-- | freebsd/sys/sys/_lock.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/freebsd/sys/sys/_lock.h b/freebsd/sys/sys/_lock.h index 457ffd4d..35decd76 100644 --- a/freebsd/sys/sys/_lock.h +++ b/freebsd/sys/sys/_lock.h @@ -31,19 +31,11 @@ #ifndef _SYS__LOCK_H_ #define _SYS__LOCK_H_ -#ifdef __rtems__ -#include <rtems.h> -#include <rtems/chain.h> -#endif struct lock_object { -#ifdef __rtems__ - rtems_chain_node lo_node; - rtems_id lo_id; -#endif /* __rtems__ */ const char *lo_name; /* Individual lock name. */ u_int lo_flags; - u_int lo_data; /* General class specific data. */ #ifndef __rtems__ + u_int lo_data; /* General class specific data. */ struct witness *lo_witness; /* Data for witness. */ #endif /* __rtems__ */ }; |