~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to drivers/base/hypervisor.c

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * hypervisor.c - /sys/hypervisor subsystem.
 
3
 *
 
4
 * Copyright (C) IBM Corp. 2006
 
5
 * Copyright (C) 2007 Greg Kroah-Hartman <gregkh@suse.de>
 
6
 * Copyright (C) 2007 Novell Inc.
 
7
 *
 
8
 * This file is released under the GPLv2
 
9
 */
 
10
 
 
11
#include <linux/kobject.h>
 
12
#include <linux/device.h>
 
13
#include <linux/export.h>
 
14
#include "base.h"
 
15
 
 
16
struct kobject *hypervisor_kobj;
 
17
EXPORT_SYMBOL_GPL(hypervisor_kobj);
 
18
 
 
19
int __init hypervisor_init(void)
 
20
{
 
21
        hypervisor_kobj = kobject_create_and_add("hypervisor", NULL);
 
22
        if (!hypervisor_kobj)
 
23
                return -ENOMEM;
 
24
        return 0;
 
25
}