Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset c263c77 in mainline for kernel/generic/src/synch/spinlock.c


Ignore:
Timestamp:
2011-05-20T23:12:26Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
0c33b1d5
Parents:
b6f3e7e
Message:

revert poisonous part of changeset mainline,971
(sadly, this reopens #243)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/synch/spinlock.c

    rb6f3e7e rc263c77  
    8484                 * This conserns especially printf_lock and the
    8585                 * framebuffer lock.
     86                 *
     87                 * Any lock whose name is prefixed by "*" will be
     88                 * ignored by this deadlock detection routine
     89                 * as this might cause an infinite recursion.
     90                 * We trust our code that there is no possible deadlock
     91                 * caused by these locks (except when an exception
     92                 * is triggered for instance by printf()).
     93                 *
     94                 * We encountered false positives caused by very
     95                 * slow framebuffer interaction (especially when
     96                 * run in a simulator) that caused problems with both
     97                 * printf_lock and the framebuffer lock.
    8698                 */
     99                if (lock->name[0] == '*')
     100                        continue;
     101               
    87102                if (i++ > DEADLOCK_THRESHOLD) {
    88103                        printf("cpu%u: looping on spinlock %p:%s, "
Note: See TracChangeset for help on using the changeset viewer.