diff options
| author | Robert Love <rml@tech9.net> | 2002-06-02 20:56:04 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-06-02 20:56:04 -0700 |
| commit | 916e75e349d0dedbebd79a68932308119e4689d4 (patch) | |
| tree | fae1077d9260bedebdb7239ffe16679f2aa478c3 /include/linux | |
| parent | 373c84d2cdc1e51ced83d24d9b934258ae38111e (diff) | |
[PATCH] sys_sysinfo cleanup
Looks like sys_sysinfo has not been touched in years. Among other
things, it uses a global cli() for protection; I switched it to an
existing rwlock. I also pulled it out of info.c and stuck it in timer.c
(I choose timer.c because it shares dependencies there already).
The details:
- move sys_sysinfo to kernel/timer.c from kernel/info.c:
why one small syscall got its own file is beyond me.
- delete kernel/info.c
- stop the global cli! now grab a read_lock on xtime_lock.
this is safe as we moved the write_unlock on xtime_lock
down one line to cover the calculating of avenrun.
- trivial code cleanup
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
