blob: a58ab5a75c8c57c5743a15f4f0fc1587f182a492 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __ASM_MACH_APICDEF_H
2#define __ASM_MACH_APICDEF_H
3
Ashok Raj1855a2c2006-01-06 00:12:08 -08004#define APIC_ID_MASK (0xFF<<24)
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
6static inline unsigned get_apic_id(unsigned long x)
7{
Ashok Raj1855a2c2006-01-06 00:12:08 -08008 return (((x)>>24)&0xFF);
Linus Torvalds1da177e2005-04-16 15:20:36 -07009}
10
11#define GET_APIC_ID(x) get_apic_id(x)
12
13#endif