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
39675e89
Commit
39675e89
authored
Jul 30, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sched/urgent' into sched/clock
parents
6e86841d
2c3d103b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
13 deletions
+12
-13
kernel/Kconfig.hz
kernel/Kconfig.hz
+1
-1
kernel/sched.c
kernel/sched.c
+1
-1
kernel/sched_clock.c
kernel/sched_clock.c
+9
-10
kernel/sched_fair.c
kernel/sched_fair.c
+1
-1
No files found.
kernel/Kconfig.hz
View file @
39675e89
...
...
@@ -55,4 +55,4 @@ config HZ
default 1000 if HZ_1000
config SCHED_HRTICK
def_bool HIGH_RES_TIMERS &&
USE_GENERIC_SMP_HELPERS
def_bool HIGH_RES_TIMERS &&
(!SMP || USE_GENERIC_SMP_HELPERS)
kernel/sched.c
View file @
39675e89
...
...
@@ -834,7 +834,7 @@ static inline u64 global_rt_period(void)
static
inline
u64
global_rt_runtime
(
void
)
{
if
(
sysctl_sched_rt_
period
<
0
)
if
(
sysctl_sched_rt_
runtime
<
0
)
return
RUNTIME_INF
;
return
(
u64
)
sysctl_sched_rt_runtime
*
NSEC_PER_USEC
;
...
...
kernel/sched_clock.c
View file @
39675e89
...
...
@@ -32,6 +32,15 @@
#include <linux/ktime.h>
#include <linux/module.h>
/*
* Scheduler clock - returns current time in nanosec units.
* This is default implementation.
* Architectures and sub-architectures can override this.
*/
unsigned
long
long
__attribute__
((
weak
))
sched_clock
(
void
)
{
return
(
unsigned
long
long
)
jiffies
*
(
NSEC_PER_SEC
/
HZ
);
}
#ifdef CONFIG_HAVE_UNSTABLE_SCHED_CLOCK
...
...
@@ -321,16 +330,6 @@ EXPORT_SYMBOL_GPL(sched_clock_idle_wakeup_event);
#endif
/*
* Scheduler clock - returns current time in nanosec units.
* This is default implementation.
* Architectures and sub-architectures can override this.
*/
unsigned
long
long
__attribute__
((
weak
))
sched_clock
(
void
)
{
return
(
unsigned
long
long
)
jiffies
*
(
NSEC_PER_SEC
/
HZ
);
}
unsigned
long
long
cpu_clock
(
int
cpu
)
{
unsigned
long
long
clock
;
...
...
kernel/sched_fair.c
View file @
39675e89
...
...
@@ -899,7 +899,7 @@ static void hrtick_start_fair(struct rq *rq, struct task_struct *p)
* doesn't make sense. Rely on vruntime for fairness.
*/
if
(
rq
->
curr
!=
p
)
delta
=
max
(
10000LL
,
delta
);
delta
=
max
_t
(
s64
,
10000LL
,
delta
);
hrtick_start
(
rq
,
delta
);
}
...
...
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