Re: [PATCH v2] net: fec: Use unlocked timecounter reads for saving state
From: Andrew Lunn <andrew@lunn.ch>
Date: 2022-08-30 12:29:14
From: Andrew Lunn <andrew@lunn.ch>
Date: 2022-08-30 12:29:14
- fec_ptp_gettime(&fep->ptp_caps, &fep->ptp_saved_state.ts_phc);
+ if (preempt_count_equals(0)) {
~/linux/drivers$ grep -r preempt_count_equals *
~/linux/drivers$
No other driver plays games like this.
Why not unconditionally take the lock?
Andrew