Thread (8 messages) 8 messages, 4 authors, 2022-09-01

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

-	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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help