Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
70c40eb9
Commit
70c40eb9
authored
Nov 08, 2003
by
Steve French
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linux.bkbits.net/linux-2.5
into hostme.bitkeeper.com:/repos/c/cifs/linux-2.5cifs
parents
c8eefeba
ae40e4b5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
30 deletions
+5
-30
arch/x86_64/kernel/entry.S
arch/x86_64/kernel/entry.S
+2
-2
include/asm-x86_64/desc.h
include/asm-x86_64/desc.h
+1
-1
include/linux/signal.h
include/linux/signal.h
+1
-1
kernel/posix-timers.c
kernel/posix-timers.c
+1
-24
kernel/timer.c
kernel/timer.c
+0
-2
No files found.
arch/x86_64/kernel/entry.S
View file @
70c40eb9
...
...
@@ -219,8 +219,8 @@ tracesys:
movq
%
r10
,%
rcx
/*
fixup
for
C
*/
call
*
sys_call_table
(,%
rax
,
8
)
movq
%
rax
,
RAX
-
ARGOFFSET
(%
rsp
)
SAVE_REST
1
:
movq
%
rsp
,%
rdi
1
:
SAVE_REST
movq
%
rsp
,%
rdi
call
syscall_trace
RESTORE_TOP_OF_STACK
%
rbx
RESTORE_REST
...
...
include/asm-x86_64/desc.h
View file @
70c40eb9
...
...
@@ -118,7 +118,7 @@ static inline void set_tssldt_descriptor(void *ptr, unsigned long tss, unsigned
d
.
base1
=
PTR_MIDDLE
(
tss
)
&
0xFF
;
d
.
type
=
type
;
d
.
p
=
1
;
d
.
limit1
=
0xF
;
d
.
limit1
=
(
size
>>
16
)
&
0xF
;
d
.
base2
=
(
PTR_MIDDLE
(
tss
)
>>
8
)
&
0xFF
;
d
.
base3
=
PTR_HIGH
(
tss
);
memcpy
(
ptr
,
&
d
,
16
);
...
...
include/linux/signal.h
View file @
70c40eb9
...
...
@@ -214,7 +214,7 @@ extern int sigprocmask(int, sigset_t *, sigset_t *);
struct
pt_regs
;
extern
int
get_signal_to_deliver
(
siginfo_t
*
info
,
struct
pt_regs
*
regs
,
void
*
cookie
);
#endif
#define FOLD_NANO_SLEEP_INTO_CLOCK_NANO_SLEEP
#endif
/* __KERNEL__ */
#endif
/* _LINUX_SIGNAL_H */
kernel/posix-timers.c
View file @
70c40eb9
...
...
@@ -1104,29 +1104,6 @@ long clock_nanosleep_restart(struct restart_block *restart_block);
extern
long
do_clock_nanosleep
(
clockid_t
which_clock
,
int
flags
,
struct
timespec
*
t
);
#ifdef FOLD_NANO_SLEEP_INTO_CLOCK_NANO_SLEEP
asmlinkage
long
sys_nanosleep
(
struct
timespec
__user
*
rqtp
,
struct
timespec
__user
*
rmtp
)
{
struct
timespec
t
;
long
ret
;
if
(
copy_from_user
(
&
t
,
rqtp
,
sizeof
(
t
)))
return
-
EFAULT
;
if
((
unsigned
)
t
.
tv_nsec
>=
NSEC_PER_SEC
||
t
.
tv_sec
<
0
)
return
-
EINVAL
;
ret
=
do_clock_nanosleep
(
CLOCK_REALTIME
,
0
,
&
t
);
if
(
ret
==
-
ERESTART_RESTARTBLOCK
&&
rmtp
&&
copy_to_user
(
rmtp
,
&
t
,
sizeof
(
t
)))
return
-
EFAULT
;
return
ret
;
}
#endif // ! FOLD_NANO_SLEEP_INTO_CLOCK_NANO_SLEEP
asmlinkage
long
sys_clock_nanosleep
(
clockid_t
which_clock
,
int
flags
,
const
struct
timespec
__user
*
rqtp
,
...
...
@@ -1244,7 +1221,7 @@ do_clock_nanosleep(clockid_t which_clock, int flags, struct timespec *tsave)
return
0
;
}
/*
* This will restart
either clock_nanosleep or clock_nanosleep
* This will restart
clock_nanosleep. Incorrectly, btw.
*/
long
clock_nanosleep_restart
(
struct
restart_block
*
restart_block
)
...
...
kernel/timer.c
View file @
70c40eb9
...
...
@@ -1059,7 +1059,6 @@ asmlinkage long sys_gettid(void)
{
return
current
->
pid
;
}
#ifndef FOLD_NANO_SLEEP_INTO_CLOCK_NANO_SLEEP
static
long
nanosleep_restart
(
struct
restart_block
*
restart
)
{
...
...
@@ -1118,7 +1117,6 @@ asmlinkage long sys_nanosleep(struct timespec *rqtp, struct timespec *rmtp)
}
return
ret
;
}
#endif // ! FOLD_NANO_SLEEP_INTO_CLOCK_NANO_SLEEP
/*
* sys_sysinfo - fill in sysinfo struct
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment