Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145843
b: refs/heads/master
c: f078370
h: refs/heads/master
i:
  145841: a40f8b1
  145839: 8289d9a
v: v3
  • Loading branch information
Ian Campbell authored and Jeremy Fitzhardinge committed Mar 30, 2009
1 parent 7c58e03 commit cc47db5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 42 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: a649b720614d5675dc402bef75a92576143fede7
refs/heads/master: f0783708bf63a2827863cf2be57c08a24843e6bd
41 changes: 0 additions & 41 deletions trunk/drivers/xen/sys-hypervisor.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,32 +353,6 @@ static void xen_properties_destroy(void)
sysfs_remove_group(hypervisor_kobj, &xen_properties_group);
}

#ifdef CONFIG_KEXEC

extern size_t vmcoreinfo_size_xen;
extern unsigned long paddr_vmcoreinfo_xen;

static ssize_t vmcoreinfo_show(struct hyp_sysfs_attr *attr, char *page)
{
return sprintf(page, "%lx %zx\n",
paddr_vmcoreinfo_xen, vmcoreinfo_size_xen);
}

HYPERVISOR_ATTR_RO(vmcoreinfo);

static int __init xen_sysfs_vmcoreinfo_init(void)
{
return sysfs_create_file(hypervisor_kobj,
&vmcoreinfo_attr.attr);
}

static void xen_sysfs_vmcoreinfo_destroy(void)
{
sysfs_remove_file(hypervisor_kobj, &vmcoreinfo_attr.attr);
}

#endif

static int __init hyper_sysfs_init(void)
{
int ret;
Expand All @@ -401,20 +375,9 @@ static int __init hyper_sysfs_init(void)
ret = xen_properties_init();
if (ret)
goto prop_out;
#ifdef CONFIG_KEXEC
if (vmcoreinfo_size_xen != 0) {
ret = xen_sysfs_vmcoreinfo_init();
if (ret)
goto vmcoreinfo_out;
}
#endif

goto out;

#ifdef CONFIG_KEXEC
vmcoreinfo_out:
#endif
xen_properties_destroy();
prop_out:
xen_sysfs_uuid_destroy();
uuid_out:
Expand All @@ -429,10 +392,6 @@ static int __init hyper_sysfs_init(void)

static void __exit hyper_sysfs_exit(void)
{
#ifdef CONFIG_KEXEC
if (vmcoreinfo_size_xen != 0)
xen_sysfs_vmcoreinfo_destroy();
#endif
xen_properties_destroy();
xen_compilation_destroy();
xen_sysfs_uuid_destroy();
Expand Down

0 comments on commit cc47db5

Please sign in to comment.