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
d5f0f0f5
Commit
d5f0f0f5
authored
Sep 15, 2009
by
Stephen Rothwell
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit 'cputime/cputime'
parents
77afa904
27bf8712
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
fs/proc/uptime.c
fs/proc/uptime.c
+6
-1
No files found.
fs/proc/uptime.c
View file @
d5f0f0f5
...
...
@@ -4,13 +4,18 @@
#include <linux/sched.h>
#include <linux/seq_file.h>
#include <linux/time.h>
#include <linux/kernel_stat.h>
#include <asm/cputime.h>
static
int
uptime_proc_show
(
struct
seq_file
*
m
,
void
*
v
)
{
struct
timespec
uptime
;
struct
timespec
idle
;
cputime_t
idletime
=
cputime_add
(
init_task
.
utime
,
init_task
.
stime
);
int
i
;
cputime_t
idletime
=
cputime_zero
;
for_each_possible_cpu
(
i
)
idletime
=
cputime64_add
(
idletime
,
kstat_cpu
(
i
).
cpustat
.
idle
);
do_posix_clock_monotonic_gettime
(
&
uptime
);
monotonic_to_bootbased
(
&
uptime
);
...
...
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