Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
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-2.6.23
Commits
511e9ee1
Commit
511e9ee1
authored
May 30, 2006
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] CodingStyle nits in cpufreq_stats.c
Signed-off-by:
Dave Jones
<
davej@redhat.com
>
parent
851777b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/cpufreq/cpufreq_stats.c
drivers/cpufreq/cpufreq_stats.c
+3
-3
No files found.
drivers/cpufreq/cpufreq_stats.c
View file @
511e9ee1
...
@@ -74,7 +74,7 @@ static ssize_t
...
@@ -74,7 +74,7 @@ static ssize_t
show_total_trans
(
struct
cpufreq_policy
*
policy
,
char
*
buf
)
show_total_trans
(
struct
cpufreq_policy
*
policy
,
char
*
buf
)
{
{
struct
cpufreq_stats
*
stat
=
cpufreq_stats_table
[
policy
->
cpu
];
struct
cpufreq_stats
*
stat
=
cpufreq_stats_table
[
policy
->
cpu
];
if
(
!
stat
)
if
(
!
stat
)
return
0
;
return
0
;
return
sprintf
(
buf
,
"%d
\n
"
,
return
sprintf
(
buf
,
"%d
\n
"
,
cpufreq_stats_table
[
stat
->
cpu
]
->
total_trans
);
cpufreq_stats_table
[
stat
->
cpu
]
->
total_trans
);
...
@@ -86,7 +86,7 @@ show_time_in_state(struct cpufreq_policy *policy, char *buf)
...
@@ -86,7 +86,7 @@ show_time_in_state(struct cpufreq_policy *policy, char *buf)
ssize_t
len
=
0
;
ssize_t
len
=
0
;
int
i
;
int
i
;
struct
cpufreq_stats
*
stat
=
cpufreq_stats_table
[
policy
->
cpu
];
struct
cpufreq_stats
*
stat
=
cpufreq_stats_table
[
policy
->
cpu
];
if
(
!
stat
)
if
(
!
stat
)
return
0
;
return
0
;
cpufreq_stats_update
(
stat
->
cpu
);
cpufreq_stats_update
(
stat
->
cpu
);
for
(
i
=
0
;
i
<
stat
->
state_num
;
i
++
)
{
for
(
i
=
0
;
i
<
stat
->
state_num
;
i
++
)
{
...
@@ -104,7 +104,7 @@ show_trans_table(struct cpufreq_policy *policy, char *buf)
...
@@ -104,7 +104,7 @@ show_trans_table(struct cpufreq_policy *policy, char *buf)
int
i
,
j
;
int
i
,
j
;
struct
cpufreq_stats
*
stat
=
cpufreq_stats_table
[
policy
->
cpu
];
struct
cpufreq_stats
*
stat
=
cpufreq_stats_table
[
policy
->
cpu
];
if
(
!
stat
)
if
(
!
stat
)
return
0
;
return
0
;
cpufreq_stats_update
(
stat
->
cpu
);
cpufreq_stats_update
(
stat
->
cpu
);
len
+=
snprintf
(
buf
+
len
,
PAGE_SIZE
-
len
,
" From : To
\n
"
);
len
+=
snprintf
(
buf
+
len
,
PAGE_SIZE
-
len
,
" From : To
\n
"
);
...
...
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