mirror of
				https://github.com/projectacrn/acrn-hypervisor.git
				synced 2025-11-04 11:48:50 +00:00 
			
		
		
		
	MISRA-C states that redundant macros reduce the maintainability of code. In some cases, we would like to keep the current unused macros for code completeness, such as cpu registers. These macros might be used later. This patch removes some unused macros that is not critical for code completeness. v1 -> v2: * Keep TRUSTY_VERSION in trusty.c. Yadong will cook another patch which will utilize TRUSTY_VERSION. Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
		
			
				
	
	
		
			21 lines
		
	
	
		
			443 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			443 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * Copyright (C) 2018 Intel Corporation. All rights reserved.
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier: BSD-3-Clause
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef SOFTIRQ_H
 | 
						|
#define SOFTIRQ_H
 | 
						|
 | 
						|
#define SOFTIRQ_TIMER		0U
 | 
						|
#define SOFTIRQ_PTDEV		1U
 | 
						|
#define NR_SOFTIRQS		2U
 | 
						|
 | 
						|
typedef void (*softirq_handler)(uint16_t cpu_id);
 | 
						|
 | 
						|
void init_softirq(void);
 | 
						|
void register_softirq(uint16_t nr, softirq_handler handler);
 | 
						|
void fire_softirq(uint16_t nr);
 | 
						|
void do_softirq(void);
 | 
						|
#endif /* SOFTIRQ_H */
 |