Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add script to update copyright notices and reformat some to facilitate its use. | Joseph Myers | 2013-01-01 | 1 | -1/+1 |
| | |||||
* | Add sparc implementation of lll_futex_timed_wait_bitset | David S. Miller | 2012-12-27 | 1 | -0/+13 |
| | | | | | | | nptl/ * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_futex_timed_wait_bitset): New macro. | ||||
* | [s390] Replace lll_futex_* assembly code with INTERNAL_SYSCALL | Siddhesh Poyarekar | 2012-12-27 | 1 | -74/+31 |
| | |||||
* | Fix some build warnings on s390x | Siddhesh Poyarekar | 2012-12-08 | 1 | -2/+2 |
| | |||||
* | Remove unused variable from powerpc sem_post.c. | Joseph Myers | 2012-12-04 | 1 | -2/+2 |
| | |||||
* | Remove unused variable from sem_post.c. | Joseph Myers | 2012-11-21 | 1 | -1/+1 |
| | |||||
* | [S390,PPC] Implement FUTEX_WAIT_BITSET for timedwait functions | Siddhesh Poyarekar | 2012-11-05 | 3 | -1/+48 |
| | | | | | | | | | | | | | | Since the FUTEX_WAIT operation takes a relative timeout, the pthread_cond_timedwait and other timed function implementations have to get a relative timeout from the absolute timeout parameter it gets before it makes the futex syscall. This value is then converted back into an absolute timeout within the kernel. This is a waste and has hence been improved upon by a FUTEX_WAIT_BITSET operation (OR'd with FUTEX_CLOCK_REALTIME to make the kernel use the realtime clock instead of the default monotonic clock). This was implemented only in the x86 and sh assembly code and not in the C code. This patch implements support for FUTEX_WAIT_BITSET whenever available (since linux-2.6.29) for s390 and powerpc. | ||||
* | Fix coding style in sparc lowlevellock.h | David S. Miller | 2012-11-03 | 1 | -2/+2 |
| | | | | | | | | nptl/ * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Add missing spaces. (__cpu_relax): Likewise. | ||||
* | Define a BUSY_WAIT_NOP for sparc. | David S. Miller | 2012-10-28 | 5 | -0/+76 |
| | | | | | | | | | | | | | | nptl/ * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Define when we have v9 instructions available. * sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: New file. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S: New file. * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile: New file. * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: Add cpu_relax to libpthread-routines. | ||||
* | Adjust mutex lock in condvar_cleanup if we got it from requeue_pi | Siddhesh Poyarekar | 2012-10-16 | 4 | -4/+17 |
| | | | | This completes the fix to bz #14652. | ||||
* | Take lock in pthread_cond_wait cleanup handler only when needed | Siddhesh Poyarekar | 2012-10-10 | 5 | -8/+65 |
| | | | | | | | | | | [BZ #14652] When a thread waiting in pthread_cond_wait with a PI mutex is cancelled after it has returned successfully from the futex syscall but just before async cancellation is disabled, it enters its cancellation handler with the mutex held and simply calling a mutex_lock again will result in a deadlock. Hence, it is necessary to see if the thread owns the lock and try to lock it only if it doesn't. | ||||
* | Unlock mutex before going back to waiting for PI mutexes | Siddhesh Poyarekar | 2012-10-05 | 4 | -171/+156 |
| | | | | | | | | | | [BZ #14417] A futex call with FUTEX_WAIT_REQUEUE_PI returns with the mutex locked on success. If such a successful thread is pipped to the cond_lock by another spuriously woken waiter, it could be sent back to wait on the futex with the mutex lock held, thus causing a deadlock. So it is necessary that the thread relinquishes the mutex before going back to sleep. | ||||
* | Fix clone flag name in comment to CLONE_CHILD_CLEARTID. | Siddhesh Poyarekar | 2012-10-02 | 6 | -6/+6 |
| | |||||
* | Fix exception table for i386 pthread_cond_wait | Siddhesh Poyarekar | 2012-10-01 | 2 | -2/+22 |
| | | | | | | | | [BZ #14477] Add an additional entry in the exception table to jump to __condvar_w_cleanup2 instead of __condvar_w_cleanup for PI mutexes when %ebx contains the address of the futex instead of the condition variable. | ||||
* | Fix bugs in powerpc pthread_once. | Alan Modra | 2012-09-25 | 1 | -5/+16 |
| | | | | | | | | | Ref gcc.gnu.org/bugzilla/show_bug.cgi?id=52839#c10 Release barriers are needed to ensure that any memory written by init_routine is seen by other threads before *once_control changes. In the case of clear_once_control we need to flush any partially written state. | ||||
* | Remove __ASSUME_POSIX_CPU_TIMERS. | Joseph Myers | 2012-09-01 | 1 | -51/+2 |
| | |||||
* | Fix sem_post race (bug 14532). | Joseph Myers | 2012-08-31 | 1 | -2/+2 |
| | |||||
* | Make libio compile without _IO_MTSAFE_IO. | Roland McGrath | 2012-08-17 | 1 | -2/+2 |
| | |||||
* | Remove __ASSUME_POSIX_TIMERS. | Joseph Myers | 2012-08-16 | 10 | -523/+203 |
| | |||||
* | Remove __ASSUME_TGKILL. | Joseph Myers | 2012-08-08 | 3 | -40/+3 |
| | |||||
* | Remove unused pseudo_end label | Andreas Schwab | 2012-07-25 | 3 | -8/+5 |
| | |||||
* | SH: __lll_robust_timedlock_wait: Simplify CFI directives. | Thomas Schwinge | 2012-06-23 | 1 | -6/+4 |
| | |||||
* | Use x86-64 bits/pthreadtypes.h/semaphore.h for i386/x86-64 | H.J. Lu | 2012-05-30 | 6 | -211/+2 |
| | |||||
* | Remove use of INTDEF/INTUSE in nptl | Andreas Schwab | 2012-05-30 | 15 | -70/+35 |
| | |||||
* | SH: Add CFI directives. | Chung-Lin Tang | 2012-05-28 | 1 | -5/+6 |
| | |||||
* | SH: Add CFI directives. | Chung-Lin Tang | 2012-05-28 | 16 | -27/+350 |
| | |||||
* | i386 port of the pthread SystemTap probes | Rayson Ho | 2012-05-25 | 8 | -12/+33 |
| | |||||
* | Add systemtap static probe points in generic and x86_64 pthread code. | Roland McGrath | 2012-05-25 | 8 | -27/+49 |
| | |||||
* | Fix warnings on Linux/i686 | Andreas Jaeger | 2012-05-17 | 1 | -4/+2 |
| | | | | | | Fixes: ../sysdeps/i386/dl-machine.h:336:30: warning: unused variable ‘refsym’ [-Wunused-variable] rtld.c:1435:3: warning: implicit declaration of function ‘_dl_discover_osversion’ [-Wimplicit-function-declaration] | ||||
* | Use R*_LP to load pointer and operate on stack | H.J. Lu | 2012-05-15 | 1 | -31/+32 |
| | |||||
* | Use LP_OP(cmp) and RCX_LP on dep_mutex pointer | H.J. Lu | 2012-05-15 | 1 | -4/+4 |
| | |||||
* | Use LP_OP(op), LP_SIZE and ASM_ADDR in sem_wait.S | H.J. Lu | 2012-05-15 | 1 | -6/+6 |
| | |||||
* | se LP_OP(op), LP_SIZE and ASM_ADDR in sem_timedwait.S | H.J. Lu | 2012-05-15 | 1 | -9/+9 |
| | |||||
* | Use LP_OP(cmp) on NWAITERS | H.J. Lu | 2012-05-15 | 1 | -1/+1 |
| | |||||
* | Use LP_SIZE and ASM_ADDR in pthread_once.S | H.J. Lu | 2012-05-15 | 1 | -3/+3 |
| | |||||
* | Use LP_OP(cmp), R*_LP, LP_SIZE and ASM_ADDR | H.J. Lu | 2012-05-15 | 1 | -20/+20 |
| | |||||
* | Use LP_OP(cmp), R*_LP, LP_SIZE and ASM_ADDR | H.J. Lu | 2012-05-15 | 1 | -24/+24 |
| | |||||
* | Use LP_OP(cmp) and RCX_LP on dep_mutex pointer | H.J. Lu | 2012-05-15 | 1 | -6/+6 |
| | |||||
* | Use LP_OP(mov) and RDI_LP on pointer | H.J. Lu | 2012-05-15 | 1 | -3/+3 |
| | |||||
* | Use LP_SIZE and load timeout pointer into RDX_LP | H.J. Lu | 2012-05-15 | 1 | -4/+4 |
| | |||||
* | Allow a single-threaded program to cancel itself | Siddhesh Poyarekar | 2012-05-15 | 1 | -0/+3 |
| | | | | | | | | | There is nothing in the POSIX specification to disallow a single-threaded program from cancelling itself, so we forcibly enable multiple_threads to allow the next available cancellation point in the thread to run. Also added additional tests to cover various cancellation scenarios. | ||||
* | Add x32 pthread types | H.J. Lu | 2012-05-14 | 1 | -14/+27 |
| | |||||
* | Check __x86_64__ for __cleanup_fct_attribute | H.J. Lu | 2012-05-11 | 1 | -1/+1 |
| | |||||
* | Use CFI statements instead of hand-coding .eh_frame. | Chung-Lin Tang | 2012-05-09 | 4 | -422/+103 |
| | |||||
* | Use __NR_futex to define SYS_futex | H.J. Lu | 2012-03-19 | 1 | -1/+1 |
| | |||||
* | Fix libc-lowlevellock.c sysdep finding more generically. | David S. Miller | 2012-03-16 | 2 | -2/+1 |
| | | | | | | | | | | nptl/ [BZ #13844] * sysdeps/unix/sysv/linux/libc-lowlevellock.c: Include using <..> instead of "...". * sysdeps/unix/sysv/linux/sparc/sparc32/libc-lowlevellock.c: Delete, not needed. | ||||
* | Add missing sparc32 NPTL file otherwise we use the wrong lowlevellock.c ↵ | David S. Miller | 2012-03-15 | 1 | -0/+1 |
| | | | | | | | | | implementation. nptl/ [BZ #13844] * sysdeps/unix/sysv/linux/sparc/sparc32/libc-lowlevellock.c: New file. | ||||
* | Update copyright year after my most recent changes. | David S. Miller | 2012-03-08 | 1 | -1/+1 |
| | | | | | | | | | | | | nptl/ * sysdeps/unix/sysv/linux/sparc/sem_post.c: Update copyright year. / * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update copyright year. * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise. | ||||
* | Work around kernel rejecting valid absolute timestamps. | Thomas Schwinge | 2012-03-08 | 1 | -2/+8 |
| | |||||
* | Invalid timeouts in SH sem_timedwait. | Thomas Schwinge | 2012-03-08 | 1 | -4/+5 |
| | | | | We adjusted nwaiters even though this isn't necessary. |