diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-08-12 00:35:46 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-08-12 00:35:46 -0700 |
commit | eeca7360f756f7e36e846f35018df20808c7ef63 (patch) | |
tree | 4810d3c615b87dc7eec2d310b8af84569b52dd02 /arch | |
parent | 8cf1fb21632d302fad6404f891b002ab8c13b1b4 (diff) | |
parent | c92761fd9efcbbcb59e7bf4db88e29ce03229889 (diff) | |
download | linux-eeca7360f756f7e36e846f35018df20808c7ef63.tar.bz2 |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc:
sparc: Don't do hypervisor calls on non-sun4v in DS driver.
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc/kernel/ds.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/sparc/kernel/ds.c b/arch/sparc/kernel/ds.c index 490e5418740d..7429b47c3aca 100644 --- a/arch/sparc/kernel/ds.c +++ b/arch/sparc/kernel/ds.c @@ -1256,13 +1256,14 @@ static int __init ds_init(void) { unsigned long hv_ret, major, minor; - hv_ret = sun4v_get_version(HV_GRP_REBOOT_DATA, &major, &minor); - if (hv_ret == HV_EOK) { - pr_info("SUN4V: Reboot data supported (maj=%lu,min=%lu).\n", - major, minor); - reboot_data_supported = 1; + if (tlb_type == hypervisor) { + hv_ret = sun4v_get_version(HV_GRP_REBOOT_DATA, &major, &minor); + if (hv_ret == HV_EOK) { + pr_info("SUN4V: Reboot data supported (maj=%lu,min=%lu).\n", + major, minor); + reboot_data_supported = 1; + } } - kthread_run(ds_thread, NULL, "kldomd"); return vio_register_driver(&ds_driver); |