Ignore:
Timestamp:
Jun 6, 2009, 11:07:11 AM (16 years ago)
Author:
Paul Smedley
Message:

Reorganise code to make maintenance easier

Location:
GPL/trunk/include/linux
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/include/linux/compiler-gcc3.h

    r305 r442  
    33/* These definitions are for GCC v3.x.  */
    44#include <linux/compiler-gcc.h>
     5
     6#define inline __inline
     7#define INLINE inline
     8#define __attribute__
    59
    610#if __GNUC_MINOR__ >= 1  && __GNUC_MINOR__ < 4
  • GPL/trunk/include/linux/kernel.h

    r441 r442  
    101101#define dump_stack()
    102102#define upper_32_bits(n) ((u32)(((n) >> 16) >> 16))
     103#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
    103104
    104105#endif
  • GPL/trunk/include/linux/lockdep.h

    r439 r442  
    11#ifndef __LINUX_LOCKDEP_H
    22#define __LINUX_LOCKDEP_H
     3#define SINGLE_DEPTH_NESTING                    1
    34/*
    45 * lockdep macros
     
    1213#define spin_lock_irqsave_nested(lock, f, x)    spin_lock_irqsave(lock, f)
    1314
     15
    1416#endif /* __LINUX_LOCKDEP_H */
  • GPL/trunk/include/linux/module.h

    r441 r442  
    7070#define MODULE_ALIAS(x)
    7171
     72extern int this_module[64];
     73#define THIS_MODULE (void *)&this_module[0]
     74#define MODULE_GENERIC_TABLE(gtype,name)
     75#define MODULE_DEVICE_TABLE(type,name)
     76#define EXPORT_SYMBOL(a)
     77
    7278#endif /* _LINUX_MODULE_H */
  • GPL/trunk/include/linux/slab.h

    r32 r442  
    44 * (markhe@nextd.demon.co.uk)
    55 */
     6
     7#include <linux/types.h>
    68
    79#if     !defined(_LINUX_SLAB_H)
     
    6668#endif
    6769
     70void *kzalloc(size_t n, gfp_t gfp_flags);
     71void *kcalloc(size_t n, size_t size, unsigned int __nocast gfp_flags);
     72
    6873#endif  /* _LINUX_SLAB_H */
  • GPL/trunk/include/linux/string.h

    r441 r442  
    1111#endif
    1212
     13char *kstrdup(const char *s, unsigned int gfp_flags);
     14
    1315#endif
    1416
  • GPL/trunk/include/linux/time.h

    r441 r442  
    126126#define do_posix_clock_monotonic_gettime getnstimeofday
    127127
     128void msleep(unsigned int msecs);
     129
    128130#endif
  • GPL/trunk/include/linux/types.h

    r441 r442  
    136136#include <string.h>
    137137typedef __u32 __le32;
     138typedef unsigned int fmode_t;
     139
    138140#endif /* _LINUX_TYPES_H */
  • GPL/trunk/include/linux/workqueue.h

    r441 r442  
    11#ifndef __LINUX_WORKQUEUE_H
    22#define __LINUX_WORKQUEUE_H
     3
     4#include <sound/compat_22.h>
     5/* we know this is used below exactly once for at most one waiter */
     6
    37struct work_struct {
    48        unsigned long pending;
     
    1014};
    1115
     16struct workqueue_struct {
     17        spinlock_t lock;
     18        const char *name;
     19        struct list_head worklist;
     20        int task_pid;
     21        struct task_struct *task;
     22        wait_queue_head_t more_work;
     23        wait_queue_head_t work_done;
     24        struct completion thread_exited;
     25};
    1226struct delayed_work {
    1327        struct work_struct work;
    1428};
     29
     30struct workqueue_struct *create_workqueue(const char *name);
     31void destroy_workqueue(struct workqueue_struct *wq);
     32int queue_work(struct workqueue_struct *wq, struct work_struct *work);
     33void flush_workqueue(struct workqueue_struct *wq);
    1534
    1635#define INIT_WORK(_work, _func, _data)                  \
     
    3554#define INIT_WORK(w,f) snd_INIT_WORK(w,f)
    3655#define create_singlethread_workqueue(name) create_workqueue(name)
     56
    3757#endif /* __LINUX_WORKQUEUE_H */
Note: See TracChangeset for help on using the changeset viewer.