Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
9ebe16b2
Commit
9ebe16b2
authored
Aug 16, 2014
by
Luc Verhaegen
Browse files
meminfo: fix up density calculation
Signed-off-by:
Luc Verhaegen
<
libv@skynet.be
>
parent
d4e34bcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
meminfo.c
View file @
9ebe16b2
...
...
@@ -243,7 +243,7 @@ int main(int argc, char **argv)
p
.
cas
=
(
r
->
mr
>>
4
&
15
);
if
(
p
.
type
==
3
)
p
.
cas
+=
4
;
p
.
density
=
(
1
<<
8
)
+
(
r
->
dcr
>>
3
&
7
);
p
.
density
=
1
<<
(
8
+
(
(
r
->
dcr
>>
3
)
&
7
)
)
;
p
.
rank_num
=
(
r
->
dcr
>>
10
&
3
)
+
1
;
p
.
io_width
=
(
r
->
dcr
>>
1
&
3
)
<<
3
;
p
.
bus_width
=
((
r
->
dcr
>>
6
&
3
)
+
1
)
<<
3
;
...
...
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