HV: per_cpu: drop dependency on version.h and add license header

version.h is included but not used by per_cpu.h. This results in a forceful
rebuild of almost all files because per_cpu.h (and thus version.h) is depended
on by many files, and version.h is created every time a build is triggered.

This patch breaks this dependency. No further changes needed as sources using
version.h all include that file explicitly.

Also add the missing license header BTW.

Signed-off-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Junjie Mao 2018-07-15 17:41:35 +08:00 committed by lijinxia
parent 116038fafc
commit a91952d3d4
1 changed files with 8 additions and 1 deletions

View File

@ -1,9 +1,15 @@
/*
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef PER_CPU_H #ifndef PER_CPU_H
#define PER_CPU_H #define PER_CPU_H
#include <hypervisor.h> #include <hypervisor.h>
#include <bsp_extern.h> #include <bsp_extern.h>
#include <schedule.h> #include <schedule.h>
#include <version.h>
#include <common/irq.h> #include <common/irq.h>
#include <arch/x86/irq.h> #include <arch/x86/irq.h>
#include <sbuf.h> #include <sbuf.h>
@ -52,4 +58,5 @@ extern uint64_t pcpu_active_bitmap;
/* get percpu data for current pcpu */ /* get percpu data for current pcpu */
#define get_cpu_var(name) per_cpu(name, get_cpu_id()) #define get_cpu_var(name) per_cpu(name, get_cpu_id())
#endif #endif