Sebastian Huber
cb87fec331
libgomp: Reduce copy and paste for RTEMS
...
libgomp/
* config/rtems/bar.c: Include "../linux/bar.c" and delete copy
and paste code.
From-SVN: r267752
2019-01-09 06:16:05 +00:00
Sebastian Huber
30b4d0d0b9
libgomp: Avoid complex dependencies for RTEMS
...
libgomp/
* config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
write.
From-SVN: r267751
2019-01-09 06:14:15 +00:00
Jakub Jelinek
a554497024
Update copyright years.
...
From-SVN: r267494
2019-01-01 13:31:55 +01:00
Jakub Jelinek
85ec4feb11
Update copyright years.
...
From-SVN: r256169
2018-01-03 11:03:58 +01:00
Jakub Jelinek
cbe34bb5ed
Update copyright years.
...
From-SVN: r243994
2017-01-01 13:07:43 +01:00
Sebastian Huber
e7a7f4bea8
[RTEMS] Use spin lock for pool management
...
libgomp/
* libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
pthread_spinlock_t instead of gomp_mutex_t lock.
(gomp_get_thread_pool): Likewise.
(gomp_release_thread_pool): Likewise.
* libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
Likewise.
From-SVN: r243181
2016-12-02 14:13:12 +00:00
Sebastian Huber
d313d52cd5
[RTEMS] Fix libgomp for nthreads == 1
...
libgomp/
* config/rtems/pool.h (gomp_get_thread_pool): Return proper
thread pool in case nthreads == 1.
From-SVN: r243179
2016-12-02 14:10:33 +00:00
Jakub Jelinek
818ab71a41
Update copyright years.
...
From-SVN: r232055
2016-01-04 15:30:50 +01:00
Sebastian Huber
06441dd5e3
[gomp] Add thread attribute customization
...
libgomp/ChangeLog
* config/posix/pool.h (gomp_adjust_thread_attr): New.
* config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
(gomp_thread_pool_reservoir): Add priority member.
* confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
priority.
(parse_thread_pools): Likewise.
* team.c (gomp_team_start): Call configuration provided
gomp_adjust_thread_attr(). Destroy thread attributes if
necessary.
* libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
From-SVN: r227442
2015-09-03 11:34:28 +00:00
Sebastian Huber
66c59f9238
[gomp] Thread pool management
...
libgomp/ChangeLog
* config/posix/pool.h: New.
* config/rtems/pool.h: Likewise.
* config/rtems/proc.c: Likewise.
* libgomp.h (gomp_thread_destructor): Declare.
* team.c: Include configuration provided "pool.h".
(gomp_get_thread_pool): Define in configuration.
(gomp_team_end): Call configuration defined
gomp_release_thread_pool().
From-SVN: r227441
2015-09-03 11:29:59 +00:00
Sebastian Huber
13c41b2e3e
[gomp] Add RTEMS configuration
...
libgomp/ChangeLog
* config/rtems/bar.c: New.
* config/rtems/bar.h: Likewise.
* config/rtems/mutex.c: Likewise.
* config/rtems/mutex.h: Likewise.
* config/rtems/sem.c: Likewise.
* config/rtems/sem.h: Likewise.
* configure.ac (*-*-rtems*): Check that Newlib provides a proper
<sys/lock.h> header file.
* configure.tgt (*-*-rtems*): Enable RTEMS configuration if
supported by Newlib.
* configure: Regenerate.
From-SVN: r227440
2015-09-03 11:26:36 +00:00