mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
trivial: small cleanups
These are small cleanups all over the tree. Trivial style and comment changes to fs/select.c, kernel/signal.c, kernel/stop_machine.c & mm/pdflush.c Signed-off-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
This commit is contained in:
parent
1fb7c6e4cb
commit
f5264481c8
4 changed files with 6 additions and 7 deletions
|
@ -260,7 +260,7 @@ int do_select(int n, fd_set_bits *fds, s64 *timeout)
|
||||||
wait = NULL;
|
wait = NULL;
|
||||||
if (retval || !*timeout || signal_pending(current))
|
if (retval || !*timeout || signal_pending(current))
|
||||||
break;
|
break;
|
||||||
if(table.error) {
|
if (table.error) {
|
||||||
retval = table.error;
|
retval = table.error;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -220,7 +220,7 @@ void flush_signals(struct task_struct *t)
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
spin_lock_irqsave(&t->sighand->siglock, flags);
|
spin_lock_irqsave(&t->sighand->siglock, flags);
|
||||||
clear_tsk_thread_flag(t,TIF_SIGPENDING);
|
clear_tsk_thread_flag(t, TIF_SIGPENDING);
|
||||||
flush_sigqueue(&t->pending);
|
flush_sigqueue(&t->pending);
|
||||||
flush_sigqueue(&t->signal->shared_pending);
|
flush_sigqueue(&t->signal->shared_pending);
|
||||||
spin_unlock_irqrestore(&t->sighand->siglock, flags);
|
spin_unlock_irqrestore(&t->sighand->siglock, flags);
|
||||||
|
@ -424,7 +424,7 @@ int dequeue_signal(struct task_struct *tsk, sigset_t *mask, siginfo_t *info)
|
||||||
}
|
}
|
||||||
if (signr &&
|
if (signr &&
|
||||||
((info->si_code & __SI_MASK) == __SI_TIMER) &&
|
((info->si_code & __SI_MASK) == __SI_TIMER) &&
|
||||||
info->si_sys_private){
|
info->si_sys_private) {
|
||||||
/*
|
/*
|
||||||
* Release the siglock to ensure proper locking order
|
* Release the siglock to ensure proper locking order
|
||||||
* of timer locks outside of siglocks. Note, we leave
|
* of timer locks outside of siglocks. Note, we leave
|
||||||
|
|
|
@ -135,8 +135,7 @@ static void restart_machine(void)
|
||||||
preempt_enable_no_resched();
|
preempt_enable_no_resched();
|
||||||
}
|
}
|
||||||
|
|
||||||
struct stop_machine_data
|
struct stop_machine_data {
|
||||||
{
|
|
||||||
int (*fn)(void *);
|
int (*fn)(void *);
|
||||||
void *data;
|
void *data;
|
||||||
struct completion done;
|
struct completion done;
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
#include <linux/gfp.h>
|
#include <linux/gfp.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/fs.h> // Needed by writeback.h
|
#include <linux/fs.h> /* Needed by writeback.h */
|
||||||
#include <linux/writeback.h> // Prototypes pdflush_operation()
|
#include <linux/writeback.h> /* Prototypes pdflush_operation() */
|
||||||
#include <linux/kthread.h>
|
#include <linux/kthread.h>
|
||||||
#include <linux/cpuset.h>
|
#include <linux/cpuset.h>
|
||||||
#include <linux/freezer.h>
|
#include <linux/freezer.h>
|
||||||
|
|
Loading…
Reference in a new issue