Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162727991
D58159.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D58159.diff
View Options
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c
--- a/sys/kern/sched_4bsd.c
+++ b/sys/kern/sched_4bsd.c
@@ -1822,12 +1822,6 @@
#endif
}
-static bool
-sched_4bsd_do_timer_accounting(void)
-{
- return (true);
-}
-
static int
sched_4bsd_find_l2_neighbor(int cpu)
{
@@ -1876,7 +1870,6 @@
SLOT(sizeof_thread),
SLOT(tdname),
SLOT(clear_tdname),
- SLOT(do_timer_accounting),
SLOT(find_l2_neighbor),
SLOT(init),
SLOT(init_ap),
diff --git a/sys/kern/sched_shim.c b/sys/kern/sched_shim.c
--- a/sys/kern/sched_shim.c
+++ b/sys/kern/sched_shim.c
@@ -85,7 +85,6 @@
DEFINE_SHIM0(sizeof_thread, int, sched_sizeof_thread)
DEFINE_SHIM1(tdname, char *, sched_tdname, struct thread *, td)
DEFINE_SHIM1(clear_tdname, void, sched_clear_tdname, struct thread *, td)
-DEFINE_SHIM0(do_timer_accounting, bool, sched_do_timer_accounting)
DEFINE_SHIM1(find_l2_neighbor, int, sched_find_l2_neighbor, int, cpu)
DEFINE_SHIM0(init_ap, void, schedinit_ap)
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -3321,12 +3321,6 @@
{
}
-static bool
-sched_ule_do_timer_accounting(void)
-{
- return (true);
-}
-
#ifdef SMP
static int
sched_ule_find_child_with_core(int cpu, struct cpu_group *grp)
@@ -3436,7 +3430,6 @@
SLOT(sizeof_thread),
SLOT(tdname),
SLOT(clear_tdname),
- SLOT(do_timer_accounting),
SLOT(find_l2_neighbor),
SLOT(init),
SLOT(init_ap),
diff --git a/sys/sys/sched.h b/sys/sys/sched.h
--- a/sys/sys/sched.h
+++ b/sys/sys/sched.h
@@ -263,8 +263,6 @@
*/
void schedinit_ap(void);
-bool sched_do_timer_accounting(void);
-
/*
* Find an L2 neighbor of the given CPU or return -1 if none found. This
* does not distinguish among multiple L2 neighbors if the given CPU has
@@ -313,7 +311,6 @@
int (*sizeof_thread)(void);
char *(*tdname)(struct thread *td);
void (*clear_tdname)(struct thread *td);
- bool (*do_timer_accounting)(void);
int (*find_l2_neighbor)(int cpuid);
void (*init)(void);
void (*init_ap)(void);
diff --git a/sys/x86/x86/local_apic.c b/sys/x86/x86/local_apic.c
--- a/sys/x86/x86/local_apic.c
+++ b/sys/x86/x86/local_apic.c
@@ -1478,9 +1478,6 @@
kmsan_mark(frame, sizeof(*frame), KMSAN_STATE_INITED);
trap_check_kstack();
- if (!sched_do_timer_accounting())
- return;
-
/* Look up our local APIC structure for the tick counters. */
la = &lapics[PCPU_GET(apic_id)];
(*la->la_timer_count)++;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 17, 5:14 AM (14 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35160410
Default Alt Text
D58159.diff (2 KB)
Attached To
Mode
D58159: sched/lapic: remove sched_do_timer_accounting()
Attached
Detach File
Event Timeline
Log In to Comment