Update kernel headers to 2.6.19-vs2.1.x-t7.
[util-vserver.git] / kernel / cvirt_def.h
diff --git a/kernel/cvirt_def.h b/kernel/cvirt_def.h
deleted file mode 100644 (file)
index 47688ed..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-#ifndef _VX_CVIRT_DEF_H
-#define _VX_CVIRT_DEF_H
-
-#include <linux/jiffies.h>
-#include <linux/utsname.h>
-#include <linux/spinlock.h>
-#include <linux/wait.h>
-#include <linux/time.h>
-#include <asm/atomic.h>
-
-
-struct _vx_usage_stat {
-       uint64_t user;
-       uint64_t nice;
-       uint64_t system;
-       uint64_t softirq;
-       uint64_t irq;
-       uint64_t idle;
-       uint64_t iowait;
-};
-
-struct _vx_syslog {
-       wait_queue_head_t log_wait;
-       spinlock_t logbuf_lock;         /* lock for the log buffer */
-
-       unsigned long log_start;        /* next char to be read by syslog() */
-       unsigned long con_start;        /* next char to be sent to consoles */
-       unsigned long log_end;  /* most-recently-written-char + 1 */
-       unsigned long logged_chars;     /* #chars since last read+clear operation */
-
-       char log_buf[1024];
-};
-
-
-/* context sub struct */
-
-struct _vx_cvirt {
-//     int max_threads;                /* maximum allowed threads */
-       atomic_t nr_threads;            /* number of current threads */
-       atomic_t nr_running;            /* number of running threads */
-       atomic_t nr_uninterruptible;    /* number of uninterruptible threads */
-
-       atomic_t nr_onhold;             /* processes on hold */
-       uint32_t onhold_last;           /* jiffies when put on hold */
-
-       struct timeval bias_tv;         /* time offset to the host */
-       struct timespec bias_idle;
-       struct timespec bias_uptime;    /* context creation point */
-       uint64_t bias_clock;            /* offset in clock_t */
-
-       struct new_utsname utsname;
-
-       spinlock_t load_lock;           /* lock for the load averages */
-       atomic_t load_updates;          /* nr of load updates done so far */
-       uint32_t load_last;             /* last time load was calculated */
-       uint32_t load[3];               /* load averages 1,5,15 */
-
-       atomic_t total_forks;           /* number of forks so far */
-
-       struct _vx_syslog syslog;
-};
-
-struct _vx_cvirt_pc {
-       struct _vx_usage_stat cpustat;
-};
-
-
-#ifdef CONFIG_VSERVER_DEBUG
-
-static inline void __dump_vx_cvirt(struct _vx_cvirt *cvirt)
-{
-       printk("\t_vx_cvirt:\n");
-       printk("\t threads: %4d, %4d, %4d, %4d\n",
-               atomic_read(&cvirt->nr_threads),
-               atomic_read(&cvirt->nr_running),
-               atomic_read(&cvirt->nr_uninterruptible),
-               atomic_read(&cvirt->nr_onhold));
-       /* add rest here */
-       printk("\t total_forks = %d\n", atomic_read(&cvirt->total_forks));
-}
-
-#endif
-
-#endif /* _VX_CVIRT_DEF_H */