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.
This commit is contained in:
commit
eeca7360f7
|
@ -1256,13 +1256,14 @@ static int __init ds_init(void)
|
||||||
{
|
{
|
||||||
unsigned long hv_ret, major, minor;
|
unsigned long hv_ret, major, minor;
|
||||||
|
|
||||||
hv_ret = sun4v_get_version(HV_GRP_REBOOT_DATA, &major, &minor);
|
if (tlb_type == hypervisor) {
|
||||||
if (hv_ret == HV_EOK) {
|
hv_ret = sun4v_get_version(HV_GRP_REBOOT_DATA, &major, &minor);
|
||||||
pr_info("SUN4V: Reboot data supported (maj=%lu,min=%lu).\n",
|
if (hv_ret == HV_EOK) {
|
||||||
major, minor);
|
pr_info("SUN4V: Reboot data supported (maj=%lu,min=%lu).\n",
|
||||||
reboot_data_supported = 1;
|
major, minor);
|
||||||
|
reboot_data_supported = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
kthread_run(ds_thread, NULL, "kldomd");
|
kthread_run(ds_thread, NULL, "kldomd");
|
||||||
|
|
||||||
return vio_register_driver(&ds_driver);
|
return vio_register_driver(&ds_driver);
|
||||||
|
|
Loading…
Reference in New Issue