Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F139392457
D15507.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D15507.diff
View Options
Index: head/sys/kern/subr_epoch.c
===================================================================
--- head/sys/kern/subr_epoch.c
+++ head/sys/kern/subr_epoch.c
@@ -298,18 +298,15 @@
epoch_enter(epoch_t epoch)
{
ck_epoch_record_t *record;
- ck_epoch_section_t *section;
struct thread *td;
MPASS(cold || epoch != NULL);
- section = NULL;
td = curthread;
- critical_enter();
- if (__predict_true(td->td_epochnest++ == 0))
- section = (ck_epoch_section_t*)&td->td_epoch_section;
+ critical_enter();
+ td->td_epochnest++;
record = &epoch->e_pcpu[curcpu]->eps_record.er_record;
- ck_epoch_begin(record, section);
+ ck_epoch_begin(record, NULL);
}
void
@@ -339,16 +336,12 @@
epoch_exit(epoch_t epoch)
{
ck_epoch_record_t *record;
- ck_epoch_section_t *section;
struct thread *td;
- section = NULL;
td = curthread;
- MPASS(td->td_critnest);
- if (__predict_true(td->td_epochnest-- == 1))
- section = (ck_epoch_section_t*)&td->td_epoch_section;
+ td->td_epochnest--;
record = &epoch->e_pcpu[curcpu]->eps_record.er_record;
- ck_epoch_end(record, section);
+ ck_epoch_end(record, NULL);
critical_exit();
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 12, 3:14 PM (18 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26899947
Default Alt Text
D15507.diff (1 KB)
Attached To
Mode
D15507: Don't specify a section in non-preemptible epoch sections.
Attached
Detach File
Event Timeline
Log In to Comment