Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75752
b: refs/heads/master
c: 2d72fc0
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 25, 2008
1 parent aebd0de commit 206724a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 881c6cfd7c5edfe6129006e2404654bfe5911050
refs/heads/master: 2d72fc00a1fb055e6127ccd30cac3f0eafaa98d0
2 changes: 1 addition & 1 deletion trunk/arch/s390/hypfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ static int __init hypfs_init(void)
goto fail_diag;
}
}
s390_subsys.kobj.kset = &hypervisor_subsys;
s390_subsys.kobj.parent = hypervisor_kobj;
rc = subsystem_register(&s390_subsys);
if (rc)
goto fail_sysfs;
Expand Down
12 changes: 8 additions & 4 deletions trunk/drivers/base/hypervisor.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,23 @@
* hypervisor.c - /sys/hypervisor subsystem.
*
* Copyright (C) IBM Corp. 2006
* Copyright (C) 2007 Greg Kroah-Hartman <gregkh@suse.de>
* Copyright (C) 2007 Novell Inc.
*
* This file is released under the GPLv2
*/

#include <linux/kobject.h>
#include <linux/device.h>

#include "base.h"

decl_subsys(hypervisor, NULL);
EXPORT_SYMBOL_GPL(hypervisor_subsys);
struct kobject *hypervisor_kobj;
EXPORT_SYMBOL_GPL(hypervisor_kobj);

int __init hypervisor_init(void)
{
return subsystem_register(&hypervisor_subsys);
hypervisor_kobj = kobject_create_and_add("hypervisor", NULL);
if (!hypervisor_kobj)
return -ENOMEM;
return 0;
}
4 changes: 2 additions & 2 deletions trunk/include/linux/kobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ struct kset _name##_subsys = { \

/* The global /sys/kernel/ kset for people to chain off of */
extern struct kset *kernel_kset;
/* The global /sys/hypervisor/ subsystem */
extern struct kset hypervisor_subsys;
/* The global /sys/hypervisor/ kobject for people to chain off of */
extern struct kobject *hypervisor_kobj;

extern int __must_check subsystem_register(struct kset *);
extern void subsystem_unregister(struct kset *);
Expand Down

0 comments on commit 206724a

Please sign in to comment.