Deleted Added
full compact
acpi_cpu.c (220433) acpi_cpu.c (223426)
1/*-
2 * Copyright (c) 2003-2005 Nate Lawson (SDG)
3 * Copyright (c) 2001 Michael Smith
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:

--- 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, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2003-2005 Nate Lawson (SDG)
3 * Copyright (c) 2001 Michael Smith
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:

--- 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, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_cpu.c 220433 2011-04-07 23:28:28Z jkim $");
29__FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_cpu.c 223426 2011-06-22 16:40:45Z jkim $");
30
31#include "opt_acpi.h"
32#include <sys/param.h>
33#include <sys/bus.h>
34#include <sys/cpu.h>
35#include <sys/kernel.h>
36#include <sys/malloc.h>
37#include <sys/module.h>

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

851 */
852 sc->cpu_non_c3 = 0;
853 sbuf_new(&sb, sc->cpu_cx_supported, sizeof(sc->cpu_cx_supported),
854 SBUF_FIXEDLEN);
855 for (i = 0; i < sc->cpu_cx_count; i++) {
856 sbuf_printf(&sb, "C%d/%d ", i + 1, sc->cpu_cx_states[i].trans_lat);
857 if (sc->cpu_cx_states[i].type < ACPI_STATE_C3)
858 sc->cpu_non_c3 = i;
30
31#include "opt_acpi.h"
32#include <sys/param.h>
33#include <sys/bus.h>
34#include <sys/cpu.h>
35#include <sys/kernel.h>
36#include <sys/malloc.h>
37#include <sys/module.h>

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

851 */
852 sc->cpu_non_c3 = 0;
853 sbuf_new(&sb, sc->cpu_cx_supported, sizeof(sc->cpu_cx_supported),
854 SBUF_FIXEDLEN);
855 for (i = 0; i < sc->cpu_cx_count; i++) {
856 sbuf_printf(&sb, "C%d/%d ", i + 1, sc->cpu_cx_states[i].trans_lat);
857 if (sc->cpu_cx_states[i].type < ACPI_STATE_C3)
858 sc->cpu_non_c3 = i;
859 else
860 cpu_can_deep_sleep = 1;
859 }
860 sbuf_trim(&sb);
861 sbuf_finish(&sb);
862}
863
864static void
865acpi_cpu_startup_cx(struct acpi_cpu_softc *sc)
866{

--- 383 unchanged lines hidden ---
861 }
862 sbuf_trim(&sb);
863 sbuf_finish(&sb);
864}
865
866static void
867acpi_cpu_startup_cx(struct acpi_cpu_softc *sc)
868{

--- 383 unchanged lines hidden ---