Deleted Added
full compact
cpuctl.c (358582) cpuctl.c (362383)
1/*-
2 * Copyright (c) 2006-2008 Stanislav Sedov <stas@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 12 unchanged lines hidden (view full) ---

21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2006-2008 Stanislav Sedov <stas@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 12 unchanged lines hidden (view full) ---

21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: stable/11/sys/dev/cpuctl/cpuctl.c 358582 2020-03-03 15:12:00Z kib $");
29__FBSDID("$FreeBSD: stable/11/sys/dev/cpuctl/cpuctl.c 362383 2020-06-19 13:48:23Z kib $");
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/conf.h>
34#include <sys/fcntl.h>
35#include <sys/ioccom.h>
36#include <sys/malloc.h>
37#include <sys/module.h>

--- 501 unchanged lines hidden (view full) ---

539 restore_cpu(oldcpu, is_bound, td);
540 hw_ibrs_recalculate(true);
541 hw_ssb_recalculate(true);
542#ifdef __amd64__
543 pmap_allow_2m_x_ept_recalculate();
544#endif
545 hw_mds_recalculate();
546 x86_taa_recalculate();
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/conf.h>
34#include <sys/fcntl.h>
35#include <sys/ioccom.h>
36#include <sys/malloc.h>
37#include <sys/module.h>

--- 501 unchanged lines hidden (view full) ---

539 restore_cpu(oldcpu, is_bound, td);
540 hw_ibrs_recalculate(true);
541 hw_ssb_recalculate(true);
542#ifdef __amd64__
543 pmap_allow_2m_x_ept_recalculate();
544#endif
545 hw_mds_recalculate();
546 x86_taa_recalculate();
547 x86_rngds_mitg_recalculate(true);
547 printcpuinfo();
548 return (0);
549}
550
551
552int
553cpuctl_open(struct cdev *dev, int flags, int fmt __unused, struct thread *td)
554{

--- 47 unchanged lines hidden ---
548 printcpuinfo();
549 return (0);
550}
551
552
553int
554cpuctl_open(struct cdev *dev, int flags, int fmt __unused, struct thread *td)
555{

--- 47 unchanged lines hidden ---