Deleted Added
full compact
est.c (179445) est.c (181691)
1/*-
2 * Copyright (c) 2004 Colin Percival
3 * Copyright (c) 2005 Nate Lawson
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted providing that the following conditions
8 * are met:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
23 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 * POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2004 Colin Percival
3 * Copyright (c) 2005 Nate Lawson
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted providing that the following conditions
8 * are met:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
23 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 * POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/i386/cpufreq/est.c 179445 2008-05-30 22:01:09Z jhb $");
29__FBSDID("$FreeBSD: head/sys/i386/cpufreq/est.c 181691 2008-08-13 16:09:40Z jhb $");
30
31#include <sys/param.h>
32#include <sys/bus.h>
33#include <sys/cpu.h>
34#include <sys/kernel.h>
35#include <sys/malloc.h>
36#include <sys/module.h>
37#include <sys/smp.h>

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

962 */
963 if (!(cpu_feature2 & CPUID2_EST))
964 return;
965
966 /*
967 * We add a child for each CPU since settings must be performed
968 * on each CPU in the SMP case.
969 */
30
31#include <sys/param.h>
32#include <sys/bus.h>
33#include <sys/cpu.h>
34#include <sys/kernel.h>
35#include <sys/malloc.h>
36#include <sys/module.h>
37#include <sys/smp.h>

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

962 */
963 if (!(cpu_feature2 & CPUID2_EST))
964 return;
965
966 /*
967 * We add a child for each CPU since settings must be performed
968 * on each CPU in the SMP case.
969 */
970 child = BUS_ADD_CHILD(parent, 0, "est", -1);
970 child = BUS_ADD_CHILD(parent, 10, "est", -1);
971 if (child == NULL)
972 device_printf(parent, "add est child failed\n");
973}
974
975static int
976est_probe(device_t dev)
977{
978 device_t perf_dev;

--- 319 unchanged lines hidden ---
971 if (child == NULL)
972 device_printf(parent, "add est child failed\n");
973}
974
975static int
976est_probe(device_t dev)
977{
978 device_t perf_dev;

--- 319 unchanged lines hidden ---