Lines 82-88
Link Here
|
82 |
struct callout rtc_handle; |
82 |
struct callout rtc_handle; |
83 |
struct timespec lasttime; |
83 |
struct timespec lasttime; |
84 |
struct selinfo sip; |
84 |
struct selinfo sip; |
85 |
int woken; |
85 |
unsigned long woken; |
86 |
void *rtc_ident; |
86 |
void *rtc_ident; |
87 |
} var; |
87 |
} var; |
88 |
}; |
88 |
}; |
Lines 338-348
Link Here
|
338 |
tsleep(&sc->var.rtc_ident, PCATCH, "rtc rd", hz * 10); |
338 |
tsleep(&sc->var.rtc_ident, PCATCH, "rtc rd", hz * 10); |
339 |
#if 0 |
339 |
#if 0 |
340 |
if (sc->var.woken > 1) |
340 |
if (sc->var.woken > 1) |
341 |
printf("woken: %d\n", sc->var.woken); |
341 |
printf("woken: %lu\n", sc->var.woken); |
342 |
#endif |
342 |
#endif |
343 |
|
343 |
|
344 |
if (uio->uio_resid == sizeof(int)) { |
344 |
if (uio->uio_resid == sizeof(unsigned int)) { |
345 |
error = uiomove(&sc->var.woken, sizeof(int), uio); |
345 |
error = uiomove(&sc->var.woken, sizeof(unsigned int), uio); |
|
|
346 |
} else if (uio->uio_resid == sizeof(unsigned long)) { |
347 |
error = uiomove(&sc->var.woken, sizeof(unsigned long), uio); |
346 |
} |
348 |
} |
347 |
sc->var.woken = 0; |
349 |
sc->var.woken = 0; |
348 |
return error; |
350 |
return error; |