View | Details | Raw Unified | Return to bug 217626 | Differences between
and this patch

Collapse All | Expand All

(-)a/drivers/rtc/rtc-mc146818-lib.c (-2 / +7 lines)
Lines 21-27 bool mc146818_avoid_UIP(void (*callback)(unsigned char seconds, void *param), Link Here
21
	unsigned long flags;
21
	unsigned long flags;
22
	unsigned char seconds;
22
	unsigned char seconds;
23
23
24
	for (i = 0; i < 100; i++) {
24
	for (i = 0; i < 100000; i++) {
25
		spin_lock_irqsave(&rtc_lock, flags);
25
		spin_lock_irqsave(&rtc_lock, flags);
26
26
27
		/*
27
		/*
Lines 72-79 bool mc146818_avoid_UIP(void (*callback)(unsigned char seconds, void *param), Link Here
72
		}
72
		}
73
		spin_unlock_irqrestore(&rtc_lock, flags);
73
		spin_unlock_irqrestore(&rtc_lock, flags);
74
74
75
		if (WARN_ON(i >= 100)) {
76
			pr_warn("%s: reading the RTC time required %d loop iterations",
77
				__func__, i);
78
		}
79
75
		return true;
80
		return true;
76
	}
81
	}
82
	WARN_ON(1);
77
	return false;
83
	return false;
78
}
84
}
79
EXPORT_SYMBOL_GPL(mc146818_avoid_UIP);
85
EXPORT_SYMBOL_GPL(mc146818_avoid_UIP);
80
- 

Return to bug 217626