Deleted Added
full compact
local_apic.c (247463) local_apic.c (250576)
1/*-
2 * Copyright (c) 2003 John Baldwin <jhb@FreeBSD.org>
3 * Copyright (c) 1996, by Steve Passe
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

27 * SUCH DAMAGE.
28 */
29
30/*
31 * Local APIC support on Pentium and later processors.
32 */
33
34#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2003 John Baldwin <jhb@FreeBSD.org>
3 * Copyright (c) 1996, by Steve Passe
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

27 * SUCH DAMAGE.
28 */
29
30/*
31 * Local APIC support on Pentium and later processors.
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/x86/x86/local_apic.c 247463 2013-02-28 13:46:03Z mav $");
35__FBSDID("$FreeBSD: head/sys/x86/x86/local_apic.c 250576 2013-05-12 16:43:26Z eadler $");
36
37#include "opt_atpic.h"
38#include "opt_hwpmc_hooks.h"
39#include "opt_kdtrace.h"
40
41#include "opt_ddb.h"
42
43#include <sys/param.h>

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

784 /* Send EOI first thing. */
785 lapic_eoi();
786
787#if defined(SMP) && !defined(SCHED_ULE)
788 /*
789 * Don't do any accounting for the disabled HTT cores, since it
790 * will provide misleading numbers for the userland.
791 *
36
37#include "opt_atpic.h"
38#include "opt_hwpmc_hooks.h"
39#include "opt_kdtrace.h"
40
41#include "opt_ddb.h"
42
43#include <sys/param.h>

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

784 /* Send EOI first thing. */
785 lapic_eoi();
786
787#if defined(SMP) && !defined(SCHED_ULE)
788 /*
789 * Don't do any accounting for the disabled HTT cores, since it
790 * will provide misleading numbers for the userland.
791 *
792 * No locking is necessary here, since even if we loose the race
792 * No locking is necessary here, since even if we lose the race
793 * when hlt_cpus_mask changes it is not a big deal, really.
794 *
795 * Don't do that for ULE, since ULE doesn't consider hlt_cpus_mask
796 * and unlike other schedulers it actually schedules threads to
797 * those CPUs.
798 */
799 if (CPU_ISSET(PCPU_GET(cpuid), &hlt_cpus_mask))
800 return;

--- 716 unchanged lines hidden ---
793 * when hlt_cpus_mask changes it is not a big deal, really.
794 *
795 * Don't do that for ULE, since ULE doesn't consider hlt_cpus_mask
796 * and unlike other schedulers it actually schedules threads to
797 * those CPUs.
798 */
799 if (CPU_ISSET(PCPU_GET(cpuid), &hlt_cpus_mask))
800 return;

--- 716 unchanged lines hidden ---