Deleted Added
full compact
smist.c (181691) smist.c (182401)
1/*-
2 * Copyright (c) 2005 Bruno Ducrot
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

31 * Hiroshi Miura (function 0 of the GSI).
32 *
33 * Finally, the int 15h call interface was (partially) documented by Intel.
34 *
35 * Many thanks to Jon Noack for testing and debugging this driver.
36 */
37
38#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2005 Bruno Ducrot
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

31 * Hiroshi Miura (function 0 of the GSI).
32 *
33 * Finally, the int 15h call interface was (partially) documented by Intel.
34 *
35 * Many thanks to Jon Noack for testing and debugging this driver.
36 */
37
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/sys/i386/cpufreq/smist.c 181691 2008-08-13 16:09:40Z jhb $");
39__FBSDID("$FreeBSD: head/sys/i386/cpufreq/smist.c 182401 2008-08-28 19:55:18Z jhb $");
40
41#include <sys/param.h>
42#include <sys/bus.h>
43#include <sys/cpu.h>
44#include <sys/kernel.h>
45#include <sys/module.h>
46#include <sys/systm.h>
47

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

398 cpufreq_register(dev);
399
400 return (0);
401}
402
403static int
404smist_detach(device_t dev)
405{
40
41#include <sys/param.h>
42#include <sys/bus.h>
43#include <sys/cpu.h>
44#include <sys/kernel.h>
45#include <sys/module.h>
46#include <sys/systm.h>
47

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

398 cpufreq_register(dev);
399
400 return (0);
401}
402
403static int
404smist_detach(device_t dev)
405{
406 cpufreq_unregister(dev);
407 return (0);
406
407 return (cpufreq_unregister(dev));
408}
409
410static int
411smist_settings(device_t dev, struct cf_setting *sets, int *count)
412{
413 struct smist_softc *sc;
414 struct cf_setting set;
415 int first, i;

--- 98 unchanged lines hidden ---
408}
409
410static int
411smist_settings(device_t dev, struct cf_setting *sets, int *count)
412{
413 struct smist_softc *sc;
414 struct cf_setting set;
415 int first, i;

--- 98 unchanged lines hidden ---