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
b177a292
Commit
b177a292
authored
Mar 31, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lparcfg: don't bother saving pointer to proc_dir_entry
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
6ea1511e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
arch/powerpc/kernel/lparcfg.c
arch/powerpc/kernel/lparcfg.c
+2
-9
No files found.
arch/powerpc/kernel/lparcfg.c
View file @
b177a292
...
...
@@ -41,8 +41,6 @@
/* #define LPARCFG_DEBUG */
static
struct
proc_dir_entry
*
proc_ppc64_lparcfg
;
/*
* Track sum of all purrs across all processors. This is used to further
* calculate usage values by different applications
...
...
@@ -688,27 +686,22 @@ static const struct file_operations lparcfg_fops = {
static
int
__init
lparcfg_init
(
void
)
{
struct
proc_dir_entry
*
ent
;
umode_t
mode
=
S_IRUSR
|
S_IRGRP
|
S_IROTH
;
/* Allow writing if we have FW_FEATURE_SPLPAR */
if
(
firmware_has_feature
(
FW_FEATURE_SPLPAR
))
mode
|=
S_IWUSR
;
ent
=
proc_create
(
"powerpc/lparcfg"
,
mode
,
NULL
,
&
lparcfg_fops
);
if
(
!
ent
)
{
if
(
!
proc_create
(
"powerpc/lparcfg"
,
mode
,
NULL
,
&
lparcfg_fops
))
{
printk
(
KERN_ERR
"Failed to create powerpc/lparcfg
\n
"
);
return
-
EIO
;
}
proc_ppc64_lparcfg
=
ent
;
return
0
;
}
static
void
__exit
lparcfg_cleanup
(
void
)
{
if
(
proc_ppc64_lparcfg
)
remove_proc_entry
(
"lparcfg"
,
proc_ppc64_lparcfg
->
parent
);
remove_proc_subtree
(
"powerpc/lparcfg"
,
NULL
);
}
module_init
(
lparcfg_init
);
...
...
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