]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/linux/sched.h
Merge branch 'parisc-5.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller...
[linux.git] / include / linux / sched.h
index 6666e25606b728916064957a1b5ba367c63c76f8..07e68d9f5dc4acd4ec5a918df0fa9c6498182c2c 100644 (file)
@@ -250,16 +250,21 @@ struct prev_cputime {
 enum vtime_state {
        /* Task is sleeping or running in a CPU with VTIME inactive: */
        VTIME_INACTIVE = 0,
-       /* Task runs in userspace in a CPU with VTIME active: */
-       VTIME_USER,
+       /* Task is idle */
+       VTIME_IDLE,
        /* Task runs in kernelspace in a CPU with VTIME active: */
        VTIME_SYS,
+       /* Task runs in userspace in a CPU with VTIME active: */
+       VTIME_USER,
+       /* Task runs as guests in a CPU with VTIME active: */
+       VTIME_GUEST,
 };
 
 struct vtime {
        seqcount_t              seqcount;
        unsigned long long      starttime;
        enum vtime_state        state;
+       unsigned int            cpu;
        u64                     utime;
        u64                     stime;
        u64                     gtime;
@@ -1054,6 +1059,8 @@ struct task_struct {
 #endif
        struct list_head                pi_state_list;
        struct futex_pi_state           *pi_state_cache;
+       struct mutex                    futex_exit_mutex;
+       unsigned int                    futex_state;
 #endif
 #ifdef CONFIG_PERF_EVENTS
        struct perf_event_context       *perf_event_ctxp[perf_nr_task_contexts];
@@ -1442,7 +1449,6 @@ extern struct pid *cad_pid;
  */
 #define PF_IDLE                        0x00000002      /* I am an IDLE thread */
 #define PF_EXITING             0x00000004      /* Getting shut down */
-#define PF_EXITPIDONE          0x00000008      /* PI exit done on shut down */
 #define PF_VCPU                        0x00000010      /* I'm a virtual CPU */
 #define PF_WQ_WORKER           0x00000020      /* I'm a workqueue worker */
 #define PF_FORKNOEXEC          0x00000040      /* Forked but didn't exec */