Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280377
b: refs/heads/master
c: 948246f
h: refs/heads/master
i:
  280375: faaaea9
v: v3
  • Loading branch information
Tejun Heo committed Nov 21, 2011
1 parent bb640a9 commit f643673
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 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: d88e4cb67197d007fb778d62fe17360e970d5bfa
refs/heads/master: 948246f70a811c872b9d93bb4a8ab5823c4c79e0
9 changes: 2 additions & 7 deletions trunk/include/linux/freezer.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extern bool pm_nosig_freezing; /* PM nosig freezing in effect */
/*
* Check if a process has been frozen
*/
static inline int frozen(struct task_struct *p)
static inline bool frozen(struct task_struct *p)
{
return p->flags & PF_FROZEN;
}
Expand All @@ -32,11 +32,6 @@ static inline bool freezing(struct task_struct *p)
return freezing_slow_path(p);
}

static inline bool should_send_signal(struct task_struct *p)
{
return !(p->flags & PF_FREEZER_NOSIG);
}

/* Takes and releases task alloc lock using task_lock() */
extern void __thaw_task(struct task_struct *t);

Expand Down Expand Up @@ -166,7 +161,7 @@ static inline void set_freezable_with_signal(void)
__retval; \
})
#else /* !CONFIG_FREEZER */
static inline int frozen(struct task_struct *p) { return 0; }
static inline bool frozen(struct task_struct *p) { return false; }
static inline bool freezing(struct task_struct *p) { return false; }

static inline bool __refrigerator(bool check_kthr_stop) { return false; }
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/freezer.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ bool freeze_task(struct task_struct *p, bool sig_only)
return false;
}

if (should_send_signal(p)) {
if (!(p->flags & PF_FREEZER_NOSIG)) {
fake_signal_wake_up(p);
/*
* fake_signal_wake_up() goes through p's scheduler
Expand Down

0 comments on commit f643673

Please sign in to comment.