patch-2.4.8 linux/arch/s390x/kernel/process.c
Next file: linux/arch/s390x/kernel/s390_ext.c
Previous file: linux/arch/s390x/kernel/linux32.c
Back to the patch index
Back to the overall index
- Lines: 74
- Date:
Wed Jul 25 14:12:01 2001
- Orig file:
v2.4.7/linux/arch/s390x/kernel/process.c
- Orig date:
Wed Apr 11 19:02:29 2001
diff -u --recursive --new-file v2.4.7/linux/arch/s390x/kernel/process.c linux/arch/s390x/kernel/process.c
@@ -63,8 +63,7 @@
wait_psw.mask = _WAIT_PSW_MASK;
wait_psw.addr = (unsigned long) &&idle_wakeup;
while(1) {
- if (softirq_active(smp_processor_id()) &
- softirq_mask(smp_processor_id())) {
+ if (softirq_pending(smp_processor_id())) {
do_softirq();
__sti();
if (!current->need_resched)
@@ -311,7 +310,7 @@
p->thread.ksp = (unsigned long) frame;
frame->childregs = *regs;
frame->childregs.gprs[15] = new_stackp;
- frame->eos = 0;
+ frame->back_chain = frame->eos = 0;
/* new return point is ret_from_sys_call */
frame->gprs[8] = (unsigned long) &ret_from_fork;
@@ -460,54 +459,3 @@
#undef last_sched
#undef first_sched
-/*
- * This should be safe even if called from tq_scheduler
- * A typical mask would be sigmask(SIGKILL)|sigmask(SIGINT)|sigmask(SIGTERM) or 0.
- *
- */
-void s390_daemonize(char *name,unsigned long mask,int use_init_fs)
-{
- struct fs_struct *fs;
- extern struct task_struct *child_reaper;
- struct task_struct *this_process=current;
-
- /*
- * If we were started as result of loading a module, close all of the
- * user space pages. We don't need them, and if we didn't close them
- * they would be locked into memory.
- */
- exit_mm(current);
-
- this_process->session = 1;
- this_process->pgrp = 1;
- if(name)
- {
- strncpy(current->comm,name,15);
- current->comm[15]=0;
- }
- else
- current->comm[0]=0;
- /* set signal mask to what we want to respond */
- siginitsetinv(¤t->blocked,mask);
- /* exit_signal isn't set up */
- /* if we inherit from cpu idle */
- this_process->exit_signal=SIGCHLD;
- /* if priority=0 schedule can go into a tight loop */
- this_process->policy= SCHED_OTHER;
- /* nice goes priority=20-nice; */
- this_process->nice=10;
- if(use_init_fs)
- {
- exit_fs(this_process); /* current->fs->count--; */
- fs = init_task.fs;
- current->fs = fs;
- atomic_inc(&fs->count);
- exit_files(current);
- }
- write_lock_irq(&tasklist_lock);
- /* We want init as our parent */
- REMOVE_LINKS(this_process);
- this_process->p_opptr=this_process->p_pptr=child_reaper;
- SET_LINKS(this_process);
- write_unlock_irq(&tasklist_lock);
-}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)