You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PARISC] Make firmware calls irqsafe-ish...
There's no reason why we shouldn't be using _irqsave instead of _irq for any of these calls. fwiw, this fixes the "start_kernel(): bug: interrupts were enabled early" message displayed on bootup recently. Signed-off-by: Kyle McMartin <kyle@parisc-linux.org> Signed-off-by: Matthew Wilcox <matthew@wil.cx>
This commit is contained in:
committed by
Matthew Wilcox
parent
ba0e427f21
commit
09690b18b7
+154
-96
File diff suppressed because it is too large
Load Diff
@@ -319,13 +319,15 @@ void __init time_init(void)
|
||||
|
||||
start_cpu_itimer(); /* get CPU 0 started */
|
||||
|
||||
if(pdc_tod_read(&tod_data) == 0) {
|
||||
write_seqlock_irq(&xtime_lock);
|
||||
if (pdc_tod_read(&tod_data) == 0) {
|
||||
unsigned long flags;
|
||||
|
||||
write_seqlock_irqsave(&xtime_lock, flags);
|
||||
xtime.tv_sec = tod_data.tod_sec;
|
||||
xtime.tv_nsec = tod_data.tod_usec * 1000;
|
||||
set_normalized_timespec(&wall_to_monotonic,
|
||||
-xtime.tv_sec, -xtime.tv_nsec);
|
||||
write_sequnlock_irq(&xtime_lock);
|
||||
write_sequnlock_irqrestore(&xtime_lock, flags);
|
||||
} else {
|
||||
printk(KERN_ERR "Error reading tod clock\n");
|
||||
xtime.tv_sec = 0;
|
||||
|
||||
Reference in New Issue
Block a user