From 91f1d6e17bbce6848d7149a7e47338398d23c650 Mon Sep 17 00:00:00 2001 From: zrj Date: Sat, 3 Feb 2018 10:56:45 +0200 Subject: [PATCH] cpucontrol(8): Fix -e handling. We do not have implemented CPUCTL_EVAL_CPU_FEATURES in cpuctl(4) yet. --- usr.sbin/cpucontrol/cpucontrol.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.sbin/cpucontrol/cpucontrol.c b/usr.sbin/cpucontrol/cpucontrol.c index 121cb104ce..ca78c21c15 100644 --- a/usr.sbin/cpucontrol/cpucontrol.c +++ b/usr.sbin/cpucontrol/cpucontrol.c @@ -346,7 +346,9 @@ do_eval_cpu_features(const char *dev) WARN(0, "error opening %s for writing", dev); return (1); } -#if 0 +#if 1 + error = 0; /* XXX not implemented yet in cpuctl(4) */ +#else error = ioctl(fd, CPUCTL_EVAL_CPU_FEATURES, NULL); if (error < 0) WARN(0, "ioctl(%s, CPUCTL_EVAL_CPU_FEATURES)", dev); -- 2.11.4.GIT