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

Changeset c263c77 in mainline for kernel/genarch/src/fb/fb.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/genarch/src/fb/fb.c

    rb6f3e7e rc263c77  
    8080
    8181typedef struct {
    82         mutex_t mtx;
     82        SPINLOCK_DECLARE(lock);
    8383       
    8484        uint8_t *addr;
     
    365365{
    366366        fb_instance_t *instance = (fb_instance_t *) dev->data;
    367         mutex_lock(&instance->mtx);
     367        spinlock_lock(&instance->lock);
    368368       
    369369        switch (ch) {
     
    406406        cursor_put(instance, silent);
    407407       
    408         mutex_unlock(&instance->mtx);
     408        spinlock_unlock(&instance->lock);
    409409}
    410410
     
    473473        fb_instance_t *instance = (fb_instance_t *) dev->data;
    474474       
    475         mutex_lock(&instance->mtx);
     475        spinlock_lock(&instance->lock);
    476476        fb_redraw_internal(instance);
    477         mutex_unlock(&instance->mtx);
     477        spinlock_unlock(&instance->lock);
    478478}
    479479
     
    554554        fbdev->data = instance;
    555555       
    556         mutex_initialize(&instance->mtx, MUTEX_PASSIVE);
     556        spinlock_initialize(&instance->lock, "*fb.instance.lock");
    557557        instance->rgb_conv = rgb_conv;
    558558        instance->pixelbytes = pixelbytes;
Note: See TracChangeset for help on using the changeset viewer.