Deleted Added
full compact
cpuctl.c (334220) cpuctl.c (347568)
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 334220 2018-05-25 19:16:05Z markj $");
29__FBSDID("$FreeBSD: stable/11/sys/dev/cpuctl/cpuctl.c 347568 2019-05-14 17:05:02Z 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>

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

525 oldcpu = td->td_oncpu;
526 is_bound = cpu_sched_is_bound(td);
527 set_cpu(cpu, td);
528 identify_cpu1();
529 identify_cpu2();
530 hw_ibrs_recalculate();
531 restore_cpu(oldcpu, is_bound, td);
532 hw_ssb_recalculate(true);
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>

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

525 oldcpu = td->td_oncpu;
526 is_bound = cpu_sched_is_bound(td);
527 set_cpu(cpu, td);
528 identify_cpu1();
529 identify_cpu2();
530 hw_ibrs_recalculate();
531 restore_cpu(oldcpu, is_bound, td);
532 hw_ssb_recalculate(true);
533 hw_mds_recalculate();
533 printcpuinfo();
534 return (0);
535}
536
537
538int
539cpuctl_open(struct cdev *dev, int flags, int fmt __unused, struct thread *td)
540{

--- 47 unchanged lines hidden ---
534 printcpuinfo();
535 return (0);
536}
537
538
539int
540cpuctl_open(struct cdev *dev, int flags, int fmt __unused, struct thread *td)
541{

--- 47 unchanged lines hidden ---