Loading arch/i386/kernel/topology.c +1 −1 Original line number Diff line number Diff line /* * arch/i386/kernel/topology.c - Populate driverfs with topology information * arch/i386/kernel/topology.c - Populate sysfs with topology information * * Written by: Matthew Dobson, IBM Corporation * Original Code: Paul Dorwin, IBM Corporation, Patrick Mochel, OSDL Loading arch/i386/oprofile/nmi_int.c +7 −7 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ static struct sys_device device_oprofile = { }; static int __init init_driverfs(void) static int __init init_sysfs(void) { int error; if (!(error = sysdev_class_register(&oprofile_sysclass))) Loading @@ -72,15 +72,15 @@ static int __init init_driverfs(void) } static void exit_driverfs(void) static void exit_sysfs(void) { sysdev_unregister(&device_oprofile); sysdev_class_unregister(&oprofile_sysclass); } #else #define init_driverfs() do { } while (0) #define exit_driverfs() do { } while (0) #define init_sysfs() do { } while (0) #define exit_sysfs() do { } while (0) #endif /* CONFIG_PM */ static int profile_exceptions_notify(struct notifier_block *self, Loading Loading @@ -385,7 +385,7 @@ static int __init ppro_init(char ** cpu_type) return 1; } /* in order to get driverfs right */ /* in order to get sysfs right */ static int using_nmi; int __init op_nmi_init(struct oprofile_operations *ops) Loading Loading @@ -440,7 +440,7 @@ int __init op_nmi_init(struct oprofile_operations *ops) return -ENODEV; } init_driverfs(); init_sysfs(); using_nmi = 1; ops->create_files = nmi_create_files; ops->setup = nmi_setup; Loading @@ -456,5 +456,5 @@ int __init op_nmi_init(struct oprofile_operations *ops) void op_nmi_exit(void) { if (using_nmi) exit_driverfs(); exit_sysfs(); } arch/parisc/kernel/topology.c +1 −1 Original line number Diff line number Diff line /* * arch/parisc/kernel/topology.c - Populate driverfs with topology information * arch/parisc/kernel/topology.c - Populate sysfs with topology information * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by Loading arch/x86_64/kernel/time.c +1 −1 Original line number Diff line number Diff line Loading @@ -418,7 +418,7 @@ static struct sysdev_class timer_sysclass = { set_kset_name("timer"), }; /* XXX this driverfs stuff should probably go elsewhere later -john */ /* XXX this sysfs stuff should probably go elsewhere later -john */ static struct sys_device device_timer = { .id = 0, .cls = &timer_sysclass, Loading drivers/base/cpu.c +1 −1 Original line number Diff line number Diff line Loading @@ -103,7 +103,7 @@ static SYSDEV_ATTR(crash_notes, 0400, show_crash_notes, NULL); #endif /* * register_cpu - Setup a driverfs device for a CPU. * register_cpu - Setup a sysfs device for a CPU. * @cpu - cpu->hotpluggable field set to 1 will generate a control file in * sysfs for this CPU. * @num - CPU number to use when creating the device. Loading Loading
arch/i386/kernel/topology.c +1 −1 Original line number Diff line number Diff line /* * arch/i386/kernel/topology.c - Populate driverfs with topology information * arch/i386/kernel/topology.c - Populate sysfs with topology information * * Written by: Matthew Dobson, IBM Corporation * Original Code: Paul Dorwin, IBM Corporation, Patrick Mochel, OSDL Loading
arch/i386/oprofile/nmi_int.c +7 −7 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ static struct sys_device device_oprofile = { }; static int __init init_driverfs(void) static int __init init_sysfs(void) { int error; if (!(error = sysdev_class_register(&oprofile_sysclass))) Loading @@ -72,15 +72,15 @@ static int __init init_driverfs(void) } static void exit_driverfs(void) static void exit_sysfs(void) { sysdev_unregister(&device_oprofile); sysdev_class_unregister(&oprofile_sysclass); } #else #define init_driverfs() do { } while (0) #define exit_driverfs() do { } while (0) #define init_sysfs() do { } while (0) #define exit_sysfs() do { } while (0) #endif /* CONFIG_PM */ static int profile_exceptions_notify(struct notifier_block *self, Loading Loading @@ -385,7 +385,7 @@ static int __init ppro_init(char ** cpu_type) return 1; } /* in order to get driverfs right */ /* in order to get sysfs right */ static int using_nmi; int __init op_nmi_init(struct oprofile_operations *ops) Loading Loading @@ -440,7 +440,7 @@ int __init op_nmi_init(struct oprofile_operations *ops) return -ENODEV; } init_driverfs(); init_sysfs(); using_nmi = 1; ops->create_files = nmi_create_files; ops->setup = nmi_setup; Loading @@ -456,5 +456,5 @@ int __init op_nmi_init(struct oprofile_operations *ops) void op_nmi_exit(void) { if (using_nmi) exit_driverfs(); exit_sysfs(); }
arch/parisc/kernel/topology.c +1 −1 Original line number Diff line number Diff line /* * arch/parisc/kernel/topology.c - Populate driverfs with topology information * arch/parisc/kernel/topology.c - Populate sysfs with topology information * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by Loading
arch/x86_64/kernel/time.c +1 −1 Original line number Diff line number Diff line Loading @@ -418,7 +418,7 @@ static struct sysdev_class timer_sysclass = { set_kset_name("timer"), }; /* XXX this driverfs stuff should probably go elsewhere later -john */ /* XXX this sysfs stuff should probably go elsewhere later -john */ static struct sys_device device_timer = { .id = 0, .cls = &timer_sysclass, Loading
drivers/base/cpu.c +1 −1 Original line number Diff line number Diff line Loading @@ -103,7 +103,7 @@ static SYSDEV_ATTR(crash_notes, 0400, show_crash_notes, NULL); #endif /* * register_cpu - Setup a driverfs device for a CPU. * register_cpu - Setup a sysfs device for a CPU. * @cpu - cpu->hotpluggable field set to 1 will generate a control file in * sysfs for this CPU. * @num - CPU number to use when creating the device. Loading