소스 검색

Xen: fix cpu_hotplug.c build by replacing is_running_on_xen() with xen_pv_domain()

Signed-off-by: Alex Nixon <alex.nixon@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Alex Nixon 17 년 전
부모
커밋
5c51c637e4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/xen/cpu_hotplug.c

+ 1 - 1
drivers/xen/cpu_hotplug.c

@@ -78,7 +78,7 @@ static int __init setup_vcpu_hotplug_event(void)
 	static struct notifier_block xsn_cpu = {
 		.notifier_call = setup_cpu_watcher };
 
-	if (!is_running_on_xen())
+	if (!xen_pv_domain())
 		return -ENODEV;
 
 	register_xenstore_notifier(&xsn_cpu);