Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
54898cb3
Commit
54898cb3
authored
Oct 08, 2009
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rt/head' into rt/2.6.31
parents
b07514b6
f39bec65
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
12 deletions
+27
-12
kernel/exit.c
kernel/exit.c
+0
-2
kernel/fork.c
kernel/fork.c
+8
-2
kernel/futex.c
kernel/futex.c
+0
-1
kernel/softirq.c
kernel/softirq.c
+12
-5
kernel/time/tick-sched.c
kernel/time/tick-sched.c
+7
-2
No files found.
kernel/exit.c
View file @
54898cb3
...
@@ -991,8 +991,6 @@ NORET_TYPE void do_exit(long code)
...
@@ -991,8 +991,6 @@ NORET_TYPE void do_exit(long code)
tsk
->
mempolicy
=
NULL
;
tsk
->
mempolicy
=
NULL
;
#endif
#endif
#ifdef CONFIG_FUTEX
#ifdef CONFIG_FUTEX
if
(
unlikely
(
!
list_empty
(
&
tsk
->
pi_state_list
)))
exit_pi_state_list
(
tsk
);
if
(
unlikely
(
current
->
pi_state_cache
))
if
(
unlikely
(
current
->
pi_state_cache
))
kfree
(
current
->
pi_state_cache
);
kfree
(
current
->
pi_state_cache
);
#endif
#endif
...
...
kernel/fork.c
View file @
54898cb3
...
@@ -575,12 +575,18 @@ void mm_release(struct task_struct *tsk, struct mm_struct *mm)
...
@@ -575,12 +575,18 @@ void mm_release(struct task_struct *tsk, struct mm_struct *mm)
/* Get rid of any futexes when releasing the mm */
/* Get rid of any futexes when releasing the mm */
#ifdef CONFIG_FUTEX
#ifdef CONFIG_FUTEX
if
(
unlikely
(
tsk
->
robust_list
))
if
(
unlikely
(
tsk
->
robust_list
))
{
exit_robust_list
(
tsk
);
exit_robust_list
(
tsk
);
tsk
->
robust_list
=
NULL
;
}
#ifdef CONFIG_COMPAT
#ifdef CONFIG_COMPAT
if
(
unlikely
(
tsk
->
compat_robust_list
))
if
(
unlikely
(
tsk
->
compat_robust_list
))
{
compat_exit_robust_list
(
tsk
);
compat_exit_robust_list
(
tsk
);
tsk
->
compat_robust_list
=
NULL
;
}
#endif
#endif
if
(
unlikely
(
!
list_empty
(
&
tsk
->
pi_state_list
)))
exit_pi_state_list
(
tsk
);
#endif
#endif
/* Get rid of any cached register state */
/* Get rid of any cached register state */
...
...
kernel/futex.c
View file @
54898cb3
...
@@ -2139,7 +2139,6 @@ int handle_early_requeue_pi_wakeup(struct futex_hash_bucket *hb,
...
@@ -2139,7 +2139,6 @@ int handle_early_requeue_pi_wakeup(struct futex_hash_bucket *hb,
* Unqueue the futex_q and determine which it was.
* Unqueue the futex_q and determine which it was.
*/
*/
plist_del
(
&
q
->
list
,
&
q
->
list
.
plist
);
plist_del
(
&
q
->
list
,
&
q
->
list
.
plist
);
drop_futex_key_refs
(
&
q
->
key
);
if
(
timeout
&&
!
timeout
->
task
)
if
(
timeout
&&
!
timeout
->
task
)
ret
=
-
ETIMEDOUT
;
ret
=
-
ETIMEDOUT
;
...
...
kernel/softirq.c
View file @
54898cb3
...
@@ -1161,6 +1161,8 @@ static int __cpuinit cpu_callback(struct notifier_block *nfb,
...
@@ -1161,6 +1161,8 @@ static int __cpuinit cpu_callback(struct notifier_block *nfb,
per_cpu
(
ksoftirqd
,
hotcpu
)[
i
].
tsk
=
NULL
;
per_cpu
(
ksoftirqd
,
hotcpu
)[
i
].
tsk
=
NULL
;
}
}
for
(
i
=
0
;
i
<
NR_SOFTIRQS
;
i
++
)
{
for
(
i
=
0
;
i
<
NR_SOFTIRQS
;
i
++
)
{
if
(
!
softirq_names
[
i
])
continue
;
p
=
kthread_create
(
ksoftirqd
,
p
=
kthread_create
(
ksoftirqd
,
&
per_cpu
(
ksoftirqd
,
hotcpu
)[
i
],
&
per_cpu
(
ksoftirqd
,
hotcpu
)[
i
],
"sirq-%s/%d"
,
softirq_names
[
i
],
"sirq-%s/%d"
,
softirq_names
[
i
],
...
@@ -1177,8 +1179,11 @@ static int __cpuinit cpu_callback(struct notifier_block *nfb,
...
@@ -1177,8 +1179,11 @@ static int __cpuinit cpu_callback(struct notifier_block *nfb,
break
;
break
;
case
CPU_ONLINE
:
case
CPU_ONLINE
:
case
CPU_ONLINE_FROZEN
:
case
CPU_ONLINE_FROZEN
:
for
(
i
=
0
;
i
<
NR_SOFTIRQS
;
i
++
)
for
(
i
=
0
;
i
<
NR_SOFTIRQS
;
i
++
)
{
wake_up_process
(
per_cpu
(
ksoftirqd
,
hotcpu
)[
i
].
tsk
);
p
=
per_cpu
(
ksoftirqd
,
hotcpu
)[
i
].
tsk
;
if
(
p
)
wake_up_process
(
p
);
}
break
;
break
;
#ifdef CONFIG_HOTPLUG_CPU
#ifdef CONFIG_HOTPLUG_CPU
case
CPU_UP_CANCELED
:
case
CPU_UP_CANCELED
:
...
@@ -1192,9 +1197,11 @@ static int __cpuinit cpu_callback(struct notifier_block *nfb,
...
@@ -1192,9 +1197,11 @@ static int __cpuinit cpu_callback(struct notifier_block *nfb,
for
(
i
=
0
;
i
<
NR_SOFTIRQS
;
i
++
)
{
for
(
i
=
0
;
i
<
NR_SOFTIRQS
;
i
++
)
{
param
.
sched_priority
=
MAX_RT_PRIO
-
1
;
param
.
sched_priority
=
MAX_RT_PRIO
-
1
;
p
=
per_cpu
(
ksoftirqd
,
hotcpu
)[
i
].
tsk
;
p
=
per_cpu
(
ksoftirqd
,
hotcpu
)[
i
].
tsk
;
sched_setscheduler
(
p
,
SCHED_FIFO
,
&
param
);
if
(
p
)
{
per_cpu
(
ksoftirqd
,
hotcpu
)[
i
].
tsk
=
NULL
;
sched_setscheduler
(
p
,
SCHED_FIFO
,
&
param
);
kthread_stop
(
p
);
per_cpu
(
ksoftirqd
,
hotcpu
)[
i
].
tsk
=
NULL
;
kthread_stop
(
p
);
}
}
}
takeover_tasklets
(
hotcpu
);
takeover_tasklets
(
hotcpu
);
break
;
break
;
...
...
kernel/time/tick-sched.c
View file @
54898cb3
...
@@ -231,6 +231,13 @@ void tick_nohz_stop_sched_tick(int inidle)
...
@@ -231,6 +231,13 @@ void tick_nohz_stop_sched_tick(int inidle)
if
(
!
inidle
&&
!
ts
->
inidle
)
if
(
!
inidle
&&
!
ts
->
inidle
)
goto
end
;
goto
end
;
/*
* Set ts->inidle unconditionally. Even if the system did not
* switch to NOHZ mode the cpu frequency governers rely on the
* update of the idle time accounting in tick_nohz_start_idle().
*/
ts
->
inidle
=
1
;
now
=
tick_nohz_start_idle
(
ts
);
now
=
tick_nohz_start_idle
(
ts
);
/*
/*
...
@@ -248,8 +255,6 @@ void tick_nohz_stop_sched_tick(int inidle)
...
@@ -248,8 +255,6 @@ void tick_nohz_stop_sched_tick(int inidle)
if
(
unlikely
(
ts
->
nohz_mode
==
NOHZ_MODE_INACTIVE
))
if
(
unlikely
(
ts
->
nohz_mode
==
NOHZ_MODE_INACTIVE
))
goto
end
;
goto
end
;
ts
->
inidle
=
1
;
if
(
need_resched
())
if
(
need_resched
())
goto
end
;
goto
end
;
...
...
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