powernow.c (166197) | powernow.c (181691) |
---|---|
1/*- 2 * Copyright (c) 2004-2005 Bruno Ducrot 3 * Copyright (c) 2004 FUKUDA Nobuhiko <nfukuda@spa.is.uec.ac.jp> 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 --- 15 unchanged lines hidden (view full) --- 24 */ 25 26/* 27 * Many thanks to Nate Lawson for his helpful comments on this driver and 28 * to Jung-uk Kim for testing. 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2004-2005 Bruno Ducrot 3 * Copyright (c) 2004 FUKUDA Nobuhiko <nfukuda@spa.is.uec.ac.jp> 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 --- 15 unchanged lines hidden (view full) --- 24 */ 25 26/* 27 * Many thanks to Nate Lawson for his helpful comments on this driver and 28 * to Jung-uk Kim for testing. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/i386/cpufreq/powernow.c 166197 2007-01-23 19:20:30Z bruno $"); | 32__FBSDID("$FreeBSD: head/sys/i386/cpufreq/powernow.c 181691 2008-08-13 16:09:40Z jhb $"); |
33 34#include <sys/param.h> 35#include <sys/bus.h> 36#include <sys/cpu.h> 37#include <sys/kernel.h> 38#include <sys/malloc.h> 39#include <sys/module.h> 40#include <sys/pcpu.h> --- 848 unchanged lines hidden (view full) --- 889 case 0x600: 890 case 0xf00: 891 break; 892 default: 893 return; 894 } 895 if (device_find_child(parent, "powernow", -1) != NULL) 896 return; | 33 34#include <sys/param.h> 35#include <sys/bus.h> 36#include <sys/cpu.h> 37#include <sys/kernel.h> 38#include <sys/malloc.h> 39#include <sys/module.h> 40#include <sys/pcpu.h> --- 848 unchanged lines hidden (view full) --- 889 case 0x600: 890 case 0xf00: 891 break; 892 default: 893 return; 894 } 895 if (device_find_child(parent, "powernow", -1) != NULL) 896 return; |
897 if ((child = BUS_ADD_CHILD(parent, 0, "powernow", -1)) == NULL) | 897 if ((child = BUS_ADD_CHILD(parent, 10, "powernow", -1)) == NULL) |
898 device_printf(parent, "powernow: add child failed\n"); 899} 900 901static int 902pn_probe(device_t dev) 903{ 904 struct pn_softc *sc; 905 uint64_t status; --- 83 unchanged lines hidden --- | 898 device_printf(parent, "powernow: add child failed\n"); 899} 900 901static int 902pn_probe(device_t dev) 903{ 904 struct pn_softc *sc; 905 uint64_t status; --- 83 unchanged lines hidden --- |