We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25cf4fb commit 1139c71Copy full SHA for 1139c71
kernel/time/sched_clock.c
@@ -119,9 +119,6 @@ unsigned long long notrace sched_clock(void)
119
*/
120
static void update_clock_read_data(struct clock_read_data *rd)
121
{
122
- /* update the backup (odd) copy with the new data */
123
- cd.read_data[1] = *rd;
124
-
125
/* steer readers towards the odd copy */
126
raw_write_seqcount_latch(&cd.seq);
127
@@ -130,6 +127,9 @@ static void update_clock_read_data(struct clock_read_data *rd)
130
131
128
/* switch readers back to the even copy */
132
129
+
+ /* update the backup (odd) copy with the new data */
+ cd.read_data[1] = *rd;
133
}
134
135
/*
0 commit comments