Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c92761fd authored by David S. Miller's avatar David S. Miller
Browse files

sparc: Don't do hypervisor calls on non-sun4v in DS driver.

parent 9e233113
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -1256,13 +1256,14 @@ static int __init ds_init(void)
{
	unsigned long hv_ret, major, minor;

	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);