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
Kirill Smelkov
linux
Commits
76b278ed
Commit
76b278ed
authored
Mar 29, 2012
by
Richard Weinberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
um: Use asm-generic/switch_to.h
Signed-off-by:
Richard Weinberger
<
richard@nod.at
>
parent
a3a85a76
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
12 deletions
+2
-12
arch/um/include/asm/Kbuild
arch/um/include/asm/Kbuild
+1
-0
arch/um/kernel/process.c
arch/um/kernel/process.c
+1
-5
arch/x86/um/asm/switch_to.h
arch/x86/um/asm/switch_to.h
+0
-7
No files found.
arch/um/include/asm/Kbuild
View file @
76b278ed
generic-y += bug.h cputime.h device.h emergency-restart.h futex.h hardirq.h
generic-y += bug.h cputime.h device.h emergency-restart.h futex.h hardirq.h
generic-y += hw_irq.h irq_regs.h kdebug.h percpu.h sections.h topology.h xor.h
generic-y += hw_irq.h irq_regs.h kdebug.h percpu.h sections.h topology.h xor.h
generic-y += ftrace.h pci.h io.h param.h delay.h mutex.h current.h exec.h
generic-y += ftrace.h pci.h io.h param.h delay.h mutex.h current.h exec.h
generic-y += switch_to.h
arch/um/kernel/process.c
View file @
76b278ed
...
@@ -88,11 +88,8 @@ static inline void set_current(struct task_struct *task)
...
@@ -88,11 +88,8 @@ static inline void set_current(struct task_struct *task)
extern
void
arch_switch_to
(
struct
task_struct
*
to
);
extern
void
arch_switch_to
(
struct
task_struct
*
to
);
void
*
_
switch_to
(
void
*
prev
,
void
*
next
,
void
*
last
)
void
*
_
_switch_to
(
struct
task_struct
*
from
,
struct
task_struct
*
to
)
{
{
struct
task_struct
*
from
=
prev
;
struct
task_struct
*
to
=
next
;
to
->
thread
.
prev_sched
=
from
;
to
->
thread
.
prev_sched
=
from
;
set_current
(
to
);
set_current
(
to
);
...
@@ -111,7 +108,6 @@ void *_switch_to(void *prev, void *next, void *last)
...
@@ -111,7 +108,6 @@ void *_switch_to(void *prev, void *next, void *last)
}
while
(
current
->
thread
.
saved_task
);
}
while
(
current
->
thread
.
saved_task
);
return
current
->
thread
.
prev_sched
;
return
current
->
thread
.
prev_sched
;
}
}
void
interrupt_end
(
void
)
void
interrupt_end
(
void
)
...
...
arch/x86/um/asm/switch_to.h
deleted
100644 → 0
View file @
a3a85a76
#ifndef _ASM_UM_SWITCH_TO_H_
#define _ASM_UM_SWITCH_TO_H_
extern
void
*
_switch_to
(
void
*
prev
,
void
*
next
,
void
*
last
);
#define switch_to(prev, next, last) prev = _switch_to(prev, next, last)
#endif
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