Deleted Added
full compact
cpuctl.c (354764) cpuctl.c (358582)
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 354764 2019-11-16 00:52:04Z scottl $");
29__FBSDID("$FreeBSD: stable/11/sys/dev/cpuctl/cpuctl.c 358582 2020-03-03 15:12:00Z 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>

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

531 if (cpu_id == 0)
532 return (ENODEV);
533#endif
534 oldcpu = td->td_oncpu;
535 is_bound = cpu_sched_is_bound(td);
536 set_cpu(cpu, td);
537 identify_cpu1();
538 identify_cpu2();
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>

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

531 if (cpu_id == 0)
532 return (ENODEV);
533#endif
534 oldcpu = td->td_oncpu;
535 is_bound = cpu_sched_is_bound(td);
536 set_cpu(cpu, td);
537 identify_cpu1();
538 identify_cpu2();
539 hw_ibrs_recalculate();
540 restore_cpu(oldcpu, is_bound, td);
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 printcpuinfo();
548 return (0);

--- 53 unchanged lines hidden ---
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 printcpuinfo();
548 return (0);

--- 53 unchanged lines hidden ---