Changeset 9701d49 in mainline


Ignore:
Timestamp:
2009-04-25T12:00:40Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
409b0d6
Parents:
ccd1a14
Message:

On sgcn disable polling too when switching to kcon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/kbd/port/sgcn.c

    rccd1a14 r9701d49  
    4343#include <stdio.h>
    4444#include <thread.h>
     45#include <bool.h>
    4546
    4647#define POLL_INTERVAL           10000
     
    9394static void *sgcn_thread_impl(void *arg);
    9495
     96static volatile bool polling_disabled = false;
    9597
    9698/**
     
    123125void kbd_port_yield(void)
    124126{
     127        polling_disabled = true;
    125128}
    126129
    127130void kbd_port_reclaim(void)
    128131{
     132        polling_disabled = false;
    129133}
    130134
     
    163167
    164168        while (1) {
    165                 sgcn_key_pressed();
     169                if (polling_disabled == false)
     170                        sgcn_key_pressed();
    166171                usleep(POLL_INTERVAL);
    167172        }
    168173}
    169174
    170 
    171175/** @}
    172176 */
Note: See TracChangeset for help on using the changeset viewer.