From: John L. <mov...@us...> - 2002-01-14 08:47:17
|
Update of /cvsroot/oprofile/oprofile/module In directory usw-pr-cvs1:/tmp/cvs-serv1740/module Modified Files: op_rtc.c Log Message: remove unneede check Index: op_rtc.c =================================================================== RCS file: /cvsroot/oprofile/oprofile/module/op_rtc.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- op_rtc.c 2002/01/14 08:38:54 1.3 +++ op_rtc.c 2002/01/14 08:47:14 1.4 @@ -78,9 +78,6 @@ target = sysctl.ctr[0].count; - if (target < OP_RTC_MIN || target > OP_RTC_MAX) - return -EINVAL; - exp = 0; while (target > (1 << exp) + ((1 << exp) >> 1)) exp++; @@ -100,11 +97,12 @@ unsigned long flags; spin_lock_irqsave(&rtc_lock, flags); + /* Enable periodic interrupts */ tmp_control = CMOS_READ(RTC_CONTROL); tmp_control |= RTC_PIE; CMOS_WRITE(tmp_control, RTC_CONTROL); - + /* read the flags register to start interrupts */ CMOS_READ(RTC_INTR_FLAGS); |