mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-10-15 12:21:19 +00:00

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 lines
224 B
C
14 lines
224 B
C
#ifndef __ASM_SUMMIT_APICDEF_H
|
|
#define __ASM_SUMMIT_APICDEF_H
|
|
|
|
#define APIC_ID_MASK (0xFF<<24)
|
|
|
|
static inline unsigned get_apic_id(unsigned long x)
|
|
{
|
|
return (x>>24)&0xFF;
|
|
}
|
|
|
|
#define GET_APIC_ID(x) get_apic_id(x)
|
|
|
|
#endif
|