From 3be3b394ad8cda19cb5f2051286464a5be0fce88 Mon Sep 17 00:00:00 2001 From: Muhammad Qasim Abdul Majeed Date: Mon, 23 Oct 2023 14:04:50 +0500 Subject: [PATCH] hypervisor: Fix spelling and grammar mistakes. Tracked-On: #8533 Signed-off-by: Muhammad Qasim Abdul Majeed --- hypervisor/arch/x86/notify.c | 2 +- hypervisor/arch/x86/page.c | 6 +++--- hypervisor/arch/x86/pm.c | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hypervisor/arch/x86/notify.c b/hypervisor/arch/x86/notify.c index d3361cf78..d1344650d 100644 --- a/hypervisor/arch/x86/notify.c +++ b/hypervisor/arch/x86/notify.c @@ -22,7 +22,7 @@ static uint64_t smp_call_mask = 0UL; /* run in interrupt context */ static void kick_notification(__unused uint32_t irq, __unused void *data) { - /* Notification vector is used to kick taget cpu out of non-root mode. + /* Notification vector is used to kick target cpu out of non-root mode. * And it also serves for smp call. */ uint16_t pcpu_id = get_pcpu_id(); diff --git a/hypervisor/arch/x86/page.c b/hypervisor/arch/x86/page.c index 4e2ec3963..cf616ea94 100644 --- a/hypervisor/arch/x86/page.c +++ b/hypervisor/arch/x86/page.c @@ -32,10 +32,10 @@ struct page *alloc_page(struct page_pool *pool) ASSERT(page != NULL, "no page aviable!"); page = (page != NULL) ? page : pool->dummy_page; if (page == NULL) { - /* For HV MMU pagetable mapping, we didn't use dummy page when there's no page - * aviable in the page pool. This because we only do MMU pagetable mapping on + /* For HV MMU page-table mapping, we didn't use dummy page when there's no page + * available in the page pool. This because we only do MMU page-table mapping on * the early boot time and we reserve enough pages for it. After that, we would - * not do any MMU pagetable mapping. We would let the system boot fail when page + * not do any MMU page-table mapping. We would let the system boot fail when page * allocation failed. */ panic("no dummy aviable!"); diff --git a/hypervisor/arch/x86/pm.c b/hypervisor/arch/x86/pm.c index 0629f5ee3..d29cc2cfe 100644 --- a/hypervisor/arch/x86/pm.c +++ b/hypervisor/arch/x86/pm.c @@ -302,7 +302,7 @@ void init_frequency_policy(void) * This Function is to be called by each pcpu after init_cpufreq(). * It applies the frequency policy, which can be specified from boot parameters. * - cpu_perf_policy=Performance: HWP autonomous selection, between highest HWP level and - * lowest HWP level. If HWP is not avaliable, the frequency is fixed to highest p-state. + * lowest HWP level. If HWP is not available, the frequency is fixed to highest p-state. * - cpu_perf_policy=Nominal: frequency is fixed to guaranteed HWP level or nominal p-state. * The default policy is 'Performance'. * @@ -317,7 +317,7 @@ void apply_frequency_policy(void) cpuid_subleaf(0x6U, 0U, &cpuid_06_eax, &unused, &unused, &unused); cpuid_subleaf(0x1U, 0U, &unused, &unused, &cpuid_01_ecx, &unused); - /* Both HWP and ACPI p-state are supported. HWP is the first choise. */ + /* Both HWP and ACPI p-state are supported. HWP is the first choice. */ if ((cpuid_06_eax & CPUID_EAX_HWP) != 0U) { /* * For Performance policy(default): CPU frequency will be autonomously selected between highest and lowest @@ -342,7 +342,7 @@ void apply_frequency_policy(void) pstate_req = limits->nominal_pstate; } - /* PX info might be missing on some platforms (px_cnt equels 0). Do nothing if so. */ + /* PX info might be missing on some platforms (px_cnt equals 0). Do nothing if so. */ if (pm_s_state_data->px_cnt != 0) { if (pstate_req < pm_s_state_data->px_cnt) { msr_write(MSR_IA32_PERF_CTL, pm_s_state_data->px_data[pstate_req].control);