aboutsummaryrefslogtreecommitdiffstats
path: root/lib/semaphore-sleepers.c
Commit message (Collapse)AuthorAge
* Make sched_trace conditional.Bjoern B. Brandenburg2007-05-16
| | | | TODO: Make it a .config option.
* Reimplemented LITMUS standard FIFO semaphores + misc fixesBjoern B. Brandenburg2007-05-14
| | | | | | | This version is much more straightforward than the last one and actually enforces FIFO order in all cases. Further, it removes the need for the sem_wake_up() calls by providing a custom wake up function for the wait queue.
* Move specialized PI semaphore code into litmus_sem.c + small fixBjoern B. Brandenburg2007-05-14
| | | | | | | - Let's keep all the code belonging to LITMUS in one place, this makes maintenance and porting much easier. - add_wait_queue_exlclusive_locked() sets the exclusive flag anyway
* FIFO semaphores and FIFO PI sems seem to be working, after a few smallJohn M. Calandrino2007-05-10
| | | | fixes.
* Added quick fix for FIFO semaphores. Other FIFO semaphores seem to beJohn M. Calandrino2007-05-10
| | | | operating correctly (or at least not crashing).
* First attempt at FIFO semaphores and PI sems. This may not work...John M. Calandrino2007-05-10
| | | | Before FIFO, everything seemed to be (finally) working ok.
* Another development update. Things seem to be working better now, but IJohn M. Calandrino2007-05-09
| | | | don't have FIFO ordering yet.
* Removed some comments. Things may indeed be working now.John M. Calandrino2007-05-09
|
* Fix to semaphores, so that things actually make sense...John M. Calandrino2007-05-09
|
* Development checkpoint. Still having issues.John M. Calandrino2007-05-09
|
* Various changes that I don't want to lose, but the code does not work.John M. Calandrino2007-05-09
|
* Some changes so that semaphores use correct wakeup functions.John M. Calandrino2007-05-03
|
* Fixed some race conditions in the priority inheritance code, and fixed aJohn M. Calandrino2007-05-01
| | | | glitch or two in GSN-EDF.
* Fixed handling of changes in task priorities due to PI in GSN-EDF.John M. Calandrino2007-04-25
|
* Fixed GSN-EDF to handle correct wakeup of tasks that just exited aJohn M. Calandrino2007-04-24
| | | | semaphore.
* Compiles. Woo! TODO: Fix GSN-EDF so it is suspension-friendly.John M. Calandrino2007-04-24
|
* Fixed the PI issue with down calls, should work now.John M. Calandrino2007-04-24
|
* Fixed a number of issues, subtle and otherwise, with PI semaphores.John M. Calandrino2007-04-24
| | | | | | | | | | PI semaphores now use scheduler callbacks to update priority on a down or up call. Issues with calling down/up and not calling __down_failed or __up_wakeup for PI semaphores has been noted (since priority-related things occured in those calls) and up has been fixed (down is in process). Callbacks are now responsible for the priority checks and updates, and some subtle cases are handled that were missed before. Still need to finish handling GSN-EDF implementation issues related to suspensions.
* Reverted back to spinlocks, added code to higher priority code inJohn M. Calandrino2007-04-23
| | | | edf-common.c, left other stubs untouched until tomorrow.
* Converting spinlocks to queuelocks in my code, and also fixing stubs... inJohn M. Calandrino2007-04-23
| | | | process...
* Fixed priority inheritance issues with PI semaphores. Added regularJohn M. Calandrino2007-04-23
| | | | | semaphores accessible through system calls, so that they can be used with the LSO (for partitioned FMLP).
* Added a way for tasks to see what their current priority is due to priorityJohn M. Calandrino2007-04-19
| | | | inheritance.
* Added priority inheritance within semaphores - compiles but has not beenJohn M. Calandrino2007-04-18
| | | | tested.
* Added stubs for modifying "semaphore" priority, in order to facilitateJohn M. Calandrino2007-04-18
| | | | | | | priority inheritance. Also fixed a few bugs. Many files were modified, as the PI semaphores were are implementing replicate much of the original Linux semaphore implementation with minor changes, often causing a cascade of changes as functions were chased down and changed in several files.
* Remove obsolete #include <linux/config.h>Jörn Engel2006-06-30
| | | | | Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de> Signed-off-by: Adrian Bunk <bunk@stusta.de>
* [PATCH] unify x86/x86-64 semaphore codeBenjamin LaHaise2005-09-05
This patch moves the common code in x86 and x86-64's semaphore.c into a single file in lib/semaphore-sleepers.c. The arch specific asm stubs are left in the arch tree (in semaphore.c for i386 and in the asm for x86-64). There should be no changes in code/functionality with this patch. Signed-off-by: Benjamin LaHaise <benjamin.c.lahaise@intel.com> Cc: Andi Kleen <ak@muc.de> Signed-off-by: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>