Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350182
b: refs/heads/master
c: 3b4a505
h: refs/heads/master
v: v3
  • Loading branch information
Alok N Kataria authored and Ingo Molnar committed Jan 29, 2013
1 parent 9582d11 commit e894484
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5ca72c4f7c412c2002363218901eba5516c476b1
refs/heads/master: 3b4a505821615b6c055536a0c23ea37c349bb6a9
8 changes: 4 additions & 4 deletions trunk/arch/x86/include/asm/kvm_para.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ static inline long kvm_hypercall4(unsigned int nr, unsigned long p1,
return ret;
}

static inline int kvm_para_available(void)
static inline bool kvm_para_available(void)
{
unsigned int eax, ebx, ecx, edx;
char signature[13];

if (boot_cpu_data.cpuid_level < 0)
return 0; /* So we don't blow up on old processors */
return false; /* So we don't blow up on old processors */

if (cpu_has_hypervisor) {
cpuid(KVM_CPUID_SIGNATURE, &eax, &ebx, &ecx, &edx);
Expand All @@ -101,10 +101,10 @@ static inline int kvm_para_available(void)
signature[12] = 0;

if (strcmp(signature, "KVMKVMKVM") == 0)
return 1;
return true;
}

return 0;
return false;
}

static inline unsigned int kvm_arch_para_features(void)
Expand Down

0 comments on commit e894484

Please sign in to comment.