Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187251
b: refs/heads/master
c: 4dd66e6
h: refs/heads/master
i:
  187249: 4e504d2
  187247: c0a9b8d
v: v3
  • Loading branch information
Veaceslav Falico authored and Linus Torvalds committed Mar 12, 2010
1 parent 4c2931c commit 04afc23
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a56704ef6b0c5796c9ff38cc78aa232dfb9644d7
refs/heads/master: 4dd66e69d472f0ba5355a2529364d0db9a18a02b
2 changes: 0 additions & 2 deletions trunk/include/linux/acct.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,12 @@ struct pacct_struct;
struct pid_namespace;
extern void acct_auto_close_mnt(struct vfsmount *m);
extern void acct_auto_close(struct super_block *sb);
extern void acct_init_pacct(struct pacct_struct *pacct);
extern void acct_collect(long exitcode, int group_dead);
extern void acct_process(void);
extern void acct_exit_ns(struct pid_namespace *);
#else
#define acct_auto_close_mnt(x) do { } while (0)
#define acct_auto_close(x) do { } while (0)
#define acct_init_pacct(x) do { } while (0)
#define acct_collect(x,y) do { } while (0)
#define acct_process() do { } while (0)
#define acct_exit_ns(ns) do { } while (0)
Expand Down
7 changes: 0 additions & 7 deletions trunk/include/linux/taskstats_kern.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
extern struct kmem_cache *taskstats_cache;
extern struct mutex taskstats_exit_mutex;

static inline void taskstats_tgid_init(struct signal_struct *sig)
{
sig->stats = NULL;
}

static inline void taskstats_tgid_free(struct signal_struct *sig)
{
if (sig->stats)
Expand All @@ -30,8 +25,6 @@ extern void taskstats_init_early(void);
#else
static inline void taskstats_exit(struct task_struct *tsk, int group_dead)
{}
static inline void taskstats_tgid_init(struct signal_struct *sig)
{}
static inline void taskstats_tgid_free(struct signal_struct *sig)
{}
static inline void taskstats_init_early(void)
Expand Down
10 changes: 0 additions & 10 deletions trunk/kernel/acct.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,16 +587,6 @@ static void do_acct_process(struct bsd_acct_struct *acct,
revert_creds(orig_cred);
}

/**
* acct_init_pacct - initialize a new pacct_struct
* @pacct: per-process accounting info struct to initialize
*/
void acct_init_pacct(struct pacct_struct *pacct)
{
memset(pacct, 0, sizeof(struct pacct_struct));
pacct->ac_utime = pacct->ac_stime = cputime_zero;
}

/**
* acct_collect - collect accounting information into pacct_struct
* @exitcode: task exit code
Expand Down

0 comments on commit 04afc23

Please sign in to comment.