Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cpuctl/cpuctl.c
Show First 20 Lines • Show All 521 Lines • ▼ Show 20 Lines | #ifdef __i386__ | ||||
if (cpu_id == 0) | if (cpu_id == 0) | ||||
return (ENODEV); | return (ENODEV); | ||||
#endif | #endif | ||||
oldcpu = td->td_oncpu; | oldcpu = td->td_oncpu; | ||||
is_bound = cpu_sched_is_bound(td); | is_bound = cpu_sched_is_bound(td); | ||||
set_cpu(cpu, td); | set_cpu(cpu, td); | ||||
identify_cpu1(); | identify_cpu1(); | ||||
identify_cpu2(); | identify_cpu2(); | ||||
hw_ibrs_recalculate(); | |||||
restore_cpu(oldcpu, is_bound, td); | restore_cpu(oldcpu, is_bound, td); | ||||
printcpuinfo(); | printcpuinfo(); | ||||
return (0); | return (0); | ||||
} | } | ||||
int | int | ||||
cpuctl_open(struct cdev *dev, int flags, int fmt __unused, struct thread *td) | cpuctl_open(struct cdev *dev, int flags, int fmt __unused, struct thread *td) | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |