disabled polling keybaord and mouse, as this seems to have strange probelems on some hardware (but works for me)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16925 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -23,6 +23,8 @@ static packet_buffer * sServiceCmdBuffer;
|
|||||||
#define PS2_SERVICE_INTERVAL 1000000
|
#define PS2_SERVICE_INTERVAL 1000000
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//#define PS2_PERIODIC_SERVICE
|
||||||
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
@@ -143,7 +145,11 @@ ps2_service_thread(void *arg)
|
|||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
status_t status;
|
status_t status;
|
||||||
status = acquire_sem_etc(sServiceSem, 1, B_RELATIVE_TIMEOUT, PS2_SERVICE_INTERVAL);
|
#ifdef PS2_PERIODIC_SERVICE
|
||||||
|
status = acquire_sem_etc(sServiceSem, 1, B_CAN_INTERRUPT | B_RELATIVE_TIMEOUT, PS2_SERVICE_INTERVAL);
|
||||||
|
#else
|
||||||
|
status = acquire_sem_etc(sServiceSem, 1, B_CAN_INTERRUPT, 0);
|
||||||
|
#endif
|
||||||
if (sServiceTerminate)
|
if (sServiceTerminate)
|
||||||
break;
|
break;
|
||||||
if (status == B_OK) {
|
if (status == B_OK) {
|
||||||
|
|||||||
Reference in New Issue
Block a user