Merge branch 'x86/apic' into perfcounters/core
Conflicts: arch/x86/kernel/cpu/perfctr-watchdog.c
This commit is contained in:
@@ -79,7 +79,7 @@ typedef int (*acpi_table_handler) (struct acpi_table_header *table);
|
||||
typedef int (*acpi_table_entry_handler) (struct acpi_subtable_header *header, const unsigned long end);
|
||||
|
||||
char * __acpi_map_table (unsigned long phys_addr, unsigned long size);
|
||||
void __init __acpi_unmap_table(char *map, unsigned long size);
|
||||
void __acpi_unmap_table(char *map, unsigned long size);
|
||||
int early_acpi_boot_init(void);
|
||||
int acpi_boot_init (void);
|
||||
int acpi_boot_table_init (void);
|
||||
|
@@ -6,6 +6,7 @@
|
||||
#define CODA_PSDEV_MAJOR 67
|
||||
#define MAX_CODADEVS 5 /* how many do we allow */
|
||||
|
||||
#ifdef __KERNEL__
|
||||
struct kstatfs;
|
||||
|
||||
/* communication pending/processing queues */
|
||||
@@ -24,7 +25,6 @@ static inline struct venus_comm *coda_vcp(struct super_block *sb)
|
||||
return (struct venus_comm *)((sb)->s_fs_info);
|
||||
}
|
||||
|
||||
|
||||
/* upcalls */
|
||||
int venus_rootfid(struct super_block *sb, struct CodaFid *fidp);
|
||||
int venus_getattr(struct super_block *sb, struct CodaFid *fid,
|
||||
@@ -64,6 +64,12 @@ int coda_downcall(int opcode, union outputArgs *out, struct super_block *sb);
|
||||
int venus_fsync(struct super_block *sb, struct CodaFid *fid);
|
||||
int venus_statfs(struct dentry *dentry, struct kstatfs *sfs);
|
||||
|
||||
/*
|
||||
* Statistics
|
||||
*/
|
||||
|
||||
extern struct venus_comm coda_comms[];
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
/* messages between coda filesystem in kernel and Venus */
|
||||
struct upc_req {
|
||||
@@ -82,11 +88,4 @@ struct upc_req {
|
||||
#define REQ_WRITE 0x4
|
||||
#define REQ_ABORT 0x8
|
||||
|
||||
|
||||
/*
|
||||
* Statistics
|
||||
*/
|
||||
|
||||
extern struct venus_comm coda_comms[];
|
||||
|
||||
#endif
|
||||
|
@@ -44,11 +44,11 @@ struct in6_addr
|
||||
* NOTE: Be aware the IN6ADDR_* constants and in6addr_* externals are defined
|
||||
* in network byte order, not in host byte order as are the IPv4 equivalents
|
||||
*/
|
||||
#ifdef __KERNEL__
|
||||
extern const struct in6_addr in6addr_any;
|
||||
#define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } }
|
||||
extern const struct in6_addr in6addr_loopback;
|
||||
#define IN6ADDR_LOOPBACK_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } }
|
||||
#ifdef __KERNEL__
|
||||
extern const struct in6_addr in6addr_linklocal_allnodes;
|
||||
#define IN6ADDR_LINKLOCAL_ALLNODES_INIT \
|
||||
{ { { 0xff,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } }
|
||||
|
@@ -237,6 +237,7 @@ struct nubus_dirent
|
||||
int mask;
|
||||
};
|
||||
|
||||
#ifdef __KERNEL__
|
||||
struct nubus_board {
|
||||
struct nubus_board* next;
|
||||
struct nubus_dev* first_dev;
|
||||
@@ -351,6 +352,7 @@ void nubus_get_rsrc_mem(void* dest,
|
||||
void nubus_get_rsrc_str(void* dest,
|
||||
const struct nubus_dirent *dirent,
|
||||
int maxlen);
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
/* We'd like to get rid of this eventually. Only daynaport.c uses it now. */
|
||||
static inline void *nubus_slot_addr(int slot)
|
||||
|
@@ -515,7 +515,7 @@ enum
|
||||
|
||||
struct tc_drr_stats
|
||||
{
|
||||
u32 deficit;
|
||||
__u32 deficit;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -28,8 +28,6 @@
|
||||
#include <linux/reiserfs_fs_sb.h>
|
||||
#endif
|
||||
|
||||
struct fid;
|
||||
|
||||
/*
|
||||
* include/linux/reiser_fs.h
|
||||
*
|
||||
@@ -37,6 +35,33 @@ struct fid;
|
||||
*
|
||||
*/
|
||||
|
||||
/* ioctl's command */
|
||||
#define REISERFS_IOC_UNPACK _IOW(0xCD,1,long)
|
||||
/* define following flags to be the same as in ext2, so that chattr(1),
|
||||
lsattr(1) will work with us. */
|
||||
#define REISERFS_IOC_GETFLAGS FS_IOC_GETFLAGS
|
||||
#define REISERFS_IOC_SETFLAGS FS_IOC_SETFLAGS
|
||||
#define REISERFS_IOC_GETVERSION FS_IOC_GETVERSION
|
||||
#define REISERFS_IOC_SETVERSION FS_IOC_SETVERSION
|
||||
|
||||
#ifdef __KERNEL__
|
||||
/* the 32 bit compat definitions with int argument */
|
||||
#define REISERFS_IOC32_UNPACK _IOW(0xCD, 1, int)
|
||||
#define REISERFS_IOC32_GETFLAGS FS_IOC32_GETFLAGS
|
||||
#define REISERFS_IOC32_SETFLAGS FS_IOC32_SETFLAGS
|
||||
#define REISERFS_IOC32_GETVERSION FS_IOC32_GETVERSION
|
||||
#define REISERFS_IOC32_SETVERSION FS_IOC32_SETVERSION
|
||||
|
||||
/* Locking primitives */
|
||||
/* Right now we are still falling back to (un)lock_kernel, but eventually that
|
||||
would evolve into real per-fs locks */
|
||||
#define reiserfs_write_lock( sb ) lock_kernel()
|
||||
#define reiserfs_write_unlock( sb ) unlock_kernel()
|
||||
|
||||
/* xattr stuff */
|
||||
#define REISERFS_XATTR_DIR_SEM(s) (REISERFS_SB(s)->xattr_dir_sem)
|
||||
struct fid;
|
||||
|
||||
/* in reading the #defines, it may help to understand that they employ
|
||||
the following abbreviations:
|
||||
|
||||
@@ -698,6 +723,7 @@ static inline void cpu_key_k_offset_dec(struct cpu_key *key)
|
||||
/* object identifier for root dir */
|
||||
#define REISERFS_ROOT_OBJECTID 2
|
||||
#define REISERFS_ROOT_PARENT_OBJECTID 1
|
||||
|
||||
extern struct reiserfs_key root_key;
|
||||
|
||||
/*
|
||||
@@ -1540,7 +1566,6 @@ struct reiserfs_iget_args {
|
||||
/* FUNCTION DECLARATIONS */
|
||||
/***************************************************************************/
|
||||
|
||||
/*#ifdef __KERNEL__*/
|
||||
#define get_journal_desc_magic(bh) (bh->b_data + bh->b_size - 12)
|
||||
|
||||
#define journal_trans_half(blocksize) \
|
||||
@@ -2178,29 +2203,6 @@ long reiserfs_compat_ioctl(struct file *filp,
|
||||
unsigned int cmd, unsigned long arg);
|
||||
int reiserfs_unpack(struct inode *inode, struct file *filp);
|
||||
|
||||
/* ioctl's command */
|
||||
#define REISERFS_IOC_UNPACK _IOW(0xCD,1,long)
|
||||
/* define following flags to be the same as in ext2, so that chattr(1),
|
||||
lsattr(1) will work with us. */
|
||||
#define REISERFS_IOC_GETFLAGS FS_IOC_GETFLAGS
|
||||
#define REISERFS_IOC_SETFLAGS FS_IOC_SETFLAGS
|
||||
#define REISERFS_IOC_GETVERSION FS_IOC_GETVERSION
|
||||
#define REISERFS_IOC_SETVERSION FS_IOC_SETVERSION
|
||||
|
||||
/* the 32 bit compat definitions with int argument */
|
||||
#define REISERFS_IOC32_UNPACK _IOW(0xCD, 1, int)
|
||||
#define REISERFS_IOC32_GETFLAGS FS_IOC32_GETFLAGS
|
||||
#define REISERFS_IOC32_SETFLAGS FS_IOC32_SETFLAGS
|
||||
#define REISERFS_IOC32_GETVERSION FS_IOC32_GETVERSION
|
||||
#define REISERFS_IOC32_SETVERSION FS_IOC32_SETVERSION
|
||||
|
||||
/* Locking primitives */
|
||||
/* Right now we are still falling back to (un)lock_kernel, but eventually that
|
||||
would evolve into real per-fs locks */
|
||||
#define reiserfs_write_lock( sb ) lock_kernel()
|
||||
#define reiserfs_write_unlock( sb ) unlock_kernel()
|
||||
|
||||
/* xattr stuff */
|
||||
#define REISERFS_XATTR_DIR_SEM(s) (REISERFS_SB(s)->xattr_dir_sem)
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
#endif /* _LINUX_REISER_FS_H */
|
||||
|
@@ -24,10 +24,12 @@ struct __kernel_sockaddr_storage {
|
||||
#include <linux/types.h> /* pid_t */
|
||||
#include <linux/compiler.h> /* __user */
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
#ifdef __KERNEL__
|
||||
# ifdef CONFIG_PROC_FS
|
||||
struct seq_file;
|
||||
extern void socket_seq_show(struct seq_file *seq);
|
||||
#endif
|
||||
# endif
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
typedef unsigned short sa_family_t;
|
||||
|
||||
|
@@ -1045,50 +1045,36 @@ typedef struct mixer_vol_table {
|
||||
*/
|
||||
#define LOCL_STARTAUDIO 1
|
||||
|
||||
#if (!defined(__KERNEL__) && !defined(KERNEL) && !defined(INKERNEL) && !defined(_KERNEL)) || defined(USE_SEQ_MACROS)
|
||||
#if !defined(__KERNEL__) || defined(USE_SEQ_MACROS)
|
||||
/*
|
||||
* Some convenience macros to simplify programming of the
|
||||
* /dev/sequencer interface
|
||||
*
|
||||
* These macros define the API which should be used when possible.
|
||||
* This is a legacy interface for applications written against
|
||||
* the OSSlib-3.8 style interface. It is no longer possible
|
||||
* to actually link against OSSlib with this header, but we
|
||||
* still provide these macros for programs using them.
|
||||
*
|
||||
* If you want to use OSSlib, it is recommended that you get
|
||||
* the GPL version of OSS-4.x and build against that version
|
||||
* of the header.
|
||||
*
|
||||
* We redefine the extern keyword so that make headers_check
|
||||
* does not complain about SEQ_USE_EXTBUF.
|
||||
*/
|
||||
#define SEQ_DECLAREBUF() SEQ_USE_EXTBUF()
|
||||
|
||||
void seqbuf_dump(void); /* This function must be provided by programs */
|
||||
|
||||
extern int OSS_init(int seqfd, int buflen);
|
||||
extern void OSS_seqbuf_dump(int fd, unsigned char *buf, int buflen);
|
||||
extern void OSS_seq_advbuf(int len, int fd, unsigned char *buf, int buflen);
|
||||
extern void OSS_seq_needbuf(int len, int fd, unsigned char *buf, int buflen);
|
||||
extern void OSS_patch_caching(int dev, int chn, int patch,
|
||||
int fd, unsigned char *buf, int buflen);
|
||||
extern void OSS_drum_caching(int dev, int chn, int patch,
|
||||
int fd, unsigned char *buf, int buflen);
|
||||
extern void OSS_write_patch(int fd, unsigned char *buf, int len);
|
||||
extern int OSS_write_patch2(int fd, unsigned char *buf, int len);
|
||||
|
||||
#define SEQ_PM_DEFINES int __foo_bar___
|
||||
#ifdef OSSLIB
|
||||
# define SEQ_USE_EXTBUF() \
|
||||
extern unsigned char *_seqbuf; \
|
||||
extern int _seqbuflen;extern int _seqbufptr
|
||||
# define SEQ_DEFINEBUF(len) SEQ_USE_EXTBUF();static int _requested_seqbuflen=len
|
||||
# define _SEQ_ADVBUF(len) OSS_seq_advbuf(len, seqfd, _seqbuf, _seqbuflen)
|
||||
# define _SEQ_NEEDBUF(len) OSS_seq_needbuf(len, seqfd, _seqbuf, _seqbuflen)
|
||||
# define SEQ_DUMPBUF() OSS_seqbuf_dump(seqfd, _seqbuf, _seqbuflen)
|
||||
|
||||
# define SEQ_LOAD_GMINSTR(dev, instr) \
|
||||
OSS_patch_caching(dev, -1, instr, seqfd, _seqbuf, _seqbuflen)
|
||||
# define SEQ_LOAD_GMDRUM(dev, drum) \
|
||||
OSS_drum_caching(dev, -1, drum, seqfd, _seqbuf, _seqbuflen)
|
||||
#else /* !OSSLIB */
|
||||
#define SEQ_LOAD_GMINSTR(dev, instr)
|
||||
#define SEQ_LOAD_GMDRUM(dev, drum)
|
||||
|
||||
# define SEQ_LOAD_GMINSTR(dev, instr)
|
||||
# define SEQ_LOAD_GMDRUM(dev, drum)
|
||||
|
||||
# define SEQ_USE_EXTBUF() \
|
||||
extern unsigned char _seqbuf[]; \
|
||||
extern int _seqbuflen;extern int _seqbufptr
|
||||
#define _SEQ_EXTERN extern
|
||||
#define SEQ_USE_EXTBUF() \
|
||||
_SEQ_EXTERN unsigned char _seqbuf[]; \
|
||||
_SEQ_EXTERN int _seqbuflen; _SEQ_EXTERN int _seqbufptr
|
||||
|
||||
#ifndef USE_SIMPLE_MACROS
|
||||
/* Sample seqbuf_dump() implementation:
|
||||
@@ -1131,7 +1117,6 @@ extern int OSS_write_patch2(int fd, unsigned char *buf, int len);
|
||||
*/
|
||||
#define _SEQ_NEEDBUF(len) /* empty */
|
||||
#endif
|
||||
#endif /* !OSSLIB */
|
||||
|
||||
#define SEQ_VOLUME_MODE(dev, mode) {_SEQ_NEEDBUF(8);\
|
||||
_seqbuf[_seqbufptr] = SEQ_EXTENDED;\
|
||||
@@ -1215,14 +1200,8 @@ extern int OSS_write_patch2(int fd, unsigned char *buf, int len);
|
||||
_CHN_COMMON(dev, MIDI_CHN_PRESSURE, chn, pressure, 0, 0)
|
||||
|
||||
#define SEQ_SET_PATCH SEQ_PGM_CHANGE
|
||||
#ifdef OSSLIB
|
||||
# define SEQ_PGM_CHANGE(dev, chn, patch) \
|
||||
{OSS_patch_caching(dev, chn, patch, seqfd, _seqbuf, _seqbuflen); \
|
||||
_CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0);}
|
||||
#else
|
||||
# define SEQ_PGM_CHANGE(dev, chn, patch) \
|
||||
#define SEQ_PGM_CHANGE(dev, chn, patch) \
|
||||
_CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0)
|
||||
#endif
|
||||
|
||||
#define SEQ_CONTROL(dev, chn, controller, value) \
|
||||
_CHN_COMMON(dev, MIDI_CTL_CHANGE, chn, controller, 0, value)
|
||||
@@ -1300,19 +1279,12 @@ extern int OSS_write_patch2(int fd, unsigned char *buf, int len);
|
||||
/*
|
||||
* Patch loading.
|
||||
*/
|
||||
#ifdef OSSLIB
|
||||
# define SEQ_WRPATCH(patchx, len) \
|
||||
OSS_write_patch(seqfd, (char*)(patchx), len)
|
||||
# define SEQ_WRPATCH2(patchx, len) \
|
||||
OSS_write_patch2(seqfd, (char*)(patchx), len)
|
||||
#else
|
||||
# define SEQ_WRPATCH(patchx, len) \
|
||||
#define SEQ_WRPATCH(patchx, len) \
|
||||
{if (_seqbufptr) SEQ_DUMPBUF();\
|
||||
if (write(seqfd, (char*)(patchx), len)==-1) \
|
||||
perror("Write patch: /dev/sequencer");}
|
||||
# define SEQ_WRPATCH2(patchx, len) \
|
||||
#define SEQ_WRPATCH2(patchx, len) \
|
||||
(SEQ_DUMPBUF(), write(seqfd, (char*)(patchx), len))
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@@ -1,6 +1,9 @@
|
||||
#ifndef _LINUX_TYPES_H
|
||||
#define _LINUX_TYPES_H
|
||||
|
||||
#include <asm/types.h>
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifdef __KERNEL__
|
||||
|
||||
#define DECLARE_BITMAP(name,bits) \
|
||||
@@ -9,7 +12,6 @@
|
||||
#endif
|
||||
|
||||
#include <linux/posix_types.h>
|
||||
#include <asm/types.h>
|
||||
|
||||
#ifndef __KERNEL_STRICT_NAMES
|
||||
|
||||
@@ -212,5 +214,5 @@ struct ustat {
|
||||
};
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif /* _LINUX_TYPES_H */
|
||||
|
Reference in New Issue
Block a user