mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-29 20:47:56 +00:00
HV:treewide:Update cpu_id type as uint_16
There are extra type conversion in the HV since cpu_id type is uint32_t and the return value type of get_cpu_id is uint16_t. BTW, the name of cpu_id is not clear enough to express its usage. So the following updates are made in this patch: Update cpu_id type as unit_16 to reduce type casting; Update related temporary variables type; Update related print argument; Change the input parameter name of interrupt_init as cpu_id to keep align with function implement; Rename cpu_id as pcpu_id as needed. Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -14,7 +14,7 @@ struct intr_excp_ctx;
|
||||
#define DUMP_STACK_SIZE 0x200U
|
||||
|
||||
void dump_intr_excp_frame(struct intr_excp_ctx *ctx);
|
||||
void dump_exception(struct intr_excp_ctx *ctx, uint32_t cpu_id);
|
||||
void dump_exception(struct intr_excp_ctx *ctx, uint16_t pcpu_id);
|
||||
|
||||
#else
|
||||
static inline void dump_intr_excp_frame(__unused struct intr_excp_ctx *ctx)
|
||||
@@ -22,7 +22,7 @@ static inline void dump_intr_excp_frame(__unused struct intr_excp_ctx *ctx)
|
||||
}
|
||||
|
||||
static inline void dump_exception(__unused struct intr_excp_ctx *ctx,
|
||||
__unused uint32_t cpu_id)
|
||||
__unused uint16_t pcpu_id)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -30,7 +30,7 @@
|
||||
extern uint32_t console_loglevel;
|
||||
extern uint32_t mem_loglevel;
|
||||
void init_logmsg(uint32_t mem_size, uint32_t flags);
|
||||
void print_logmsg_buffer(uint32_t cpu_id);
|
||||
void print_logmsg_buffer(uint16_t pcpu_id);
|
||||
void do_logmsg(uint32_t severity, const char *fmt, ...);
|
||||
|
||||
#else /* HV_DEBUG */
|
||||
@@ -45,7 +45,7 @@ static inline void do_logmsg(__unused uint32_t severity,
|
||||
{
|
||||
}
|
||||
|
||||
static inline void print_logmsg_buffer(__unused uint32_t cpu_id)
|
||||
static inline void print_logmsg_buffer(__unused uint16_t pcpu_id)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user