summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorVojtech Pavlik <vojtech@suse.cz>2004-08-03 20:33:42 +0200
committerVojtech Pavlik <vojtech@suse.cz>2004-08-03 20:33:42 +0200
commit85103e8d3755fe9ccde2c12ff39fe7208b93b763 (patch)
tree310d544c76918e03a2ae6731463d250bf7a21aef /kernel
parenta25defbba3140a442764bde87eff05817d36741c (diff)
parent7588ab9742b3ae0ecebcb32fca1374deda97e73f (diff)
Merge suse.cz:/data/bk/linus into suse.cz:/data/bk/input
Diffstat (limited to 'kernel')
-rw-r--r--kernel/acct.c5
-rw-r--r--kernel/module.c3
-rw-r--r--kernel/sched.c6
-rw-r--r--kernel/timer.c4
4 files changed, 7 insertions, 11 deletions
diff --git a/kernel/acct.c b/kernel/acct.c
index e55e7bba861e..daf23c4efab4 100644
--- a/kernel/acct.c
+++ b/kernel/acct.c
@@ -398,7 +398,7 @@ static void do_acct_process(long exitcode, struct file *file)
*/
memset((caddr_t)&ac, 0, sizeof(acct_t));
- ac.ac_version = ACCT_VERSION;
+ ac.ac_version = ACCT_VERSION | ACCT_BYTEORDER;
strlcpy(ac.ac_comm, current->comm, sizeof(ac.ac_comm));
elapsed = jiffies_64_to_AHZ(get_jiffies_64() - current->start_time);
@@ -441,8 +441,7 @@ static void do_acct_process(long exitcode, struct file *file)
old_encode_dev(tty_devnum(current->signal->tty)) : 0;
read_unlock(&tasklist_lock);
- /* ABYTESEX is always set to allow byte order detection */
- ac.ac_flag = ABYTESEX;
+ ac.ac_flag = 0;
if (current->flags & PF_FORKNOEXEC)
ac.ac_flag |= AFORK;
if (current->flags & PF_SUPERPRIV)
diff --git a/kernel/module.c b/kernel/module.c
index 858b34f4c33b..dfe295ecf2f1 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -51,9 +51,6 @@
/* If this is set, the section belongs in the init part of the module */
#define INIT_OFFSET_MASK (1UL << (BITS_PER_LONG-1))
-#define symbol_is(literal, string) \
- (strcmp(MODULE_SYMBOL_PREFIX literal, (string)) == 0)
-
/* Protects module list */
static spinlock_t modlist_lock = SPIN_LOCK_UNLOCKED;
diff --git a/kernel/sched.c b/kernel/sched.c
index c279ba227145..3e8897919924 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -1095,7 +1095,7 @@ unsigned long nr_uninterruptible(void)
{
unsigned long i, sum = 0;
- for_each_online_cpu(i)
+ for_each_cpu(i)
sum += cpu_rq(i)->nr_uninterruptible;
return sum;
@@ -1105,7 +1105,7 @@ unsigned long long nr_context_switches(void)
{
unsigned long long i, sum = 0;
- for_each_online_cpu(i)
+ for_each_cpu(i)
sum += cpu_rq(i)->nr_switches;
return sum;
@@ -1115,7 +1115,7 @@ unsigned long nr_iowait(void)
{
unsigned long i, sum = 0;
- for_each_online_cpu(i)
+ for_each_cpu(i)
sum += atomic_read(&cpu_rq(i)->nr_iowait);
return sum;
diff --git a/kernel/timer.c b/kernel/timer.c
index 56b315bc53cf..4850abbeacdc 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -792,12 +792,12 @@ static inline void do_process_times(struct task_struct *p,
psecs = (p->utime += user);
psecs += (p->stime += system);
- if (psecs / HZ > p->rlim[RLIMIT_CPU].rlim_cur) {
+ if (psecs / HZ >= p->rlim[RLIMIT_CPU].rlim_cur) {
/* Send SIGXCPU every second.. */
if (!(psecs % HZ))
send_sig(SIGXCPU, p, 1);
/* and SIGKILL when we go over max.. */
- if (psecs / HZ > p->rlim[RLIMIT_CPU].rlim_max)
+ if (psecs / HZ >= p->rlim[RLIMIT_CPU].rlim_max)
send_sig(SIGKILL, p, 1);
}
}