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
nexedi
linux
Commits
fbd387ae
Commit
fbd387ae
authored
Apr 01, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create_proc_cpu_mask() doesn't need an argument...
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
b177a292
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
arch/s390/kernel/irq.c
arch/s390/kernel/irq.c
+2
-4
include/linux/profile.h
include/linux/profile.h
+2
-2
kernel/profile.c
kernel/profile.c
+2
-2
No files found.
arch/s390/kernel/irq.c
View file @
fbd387ae
...
...
@@ -162,10 +162,8 @@ asmlinkage void do_softirq(void)
#ifdef CONFIG_PROC_FS
void
init_irq_proc
(
void
)
{
struct
proc_dir_entry
*
root_irq_dir
;
root_irq_dir
=
proc_mkdir
(
"irq"
,
NULL
);
create_prof_cpu_mask
(
root_irq_dir
);
if
(
proc_mkdir
(
"irq"
,
NULL
))
create_prof_cpu_mask
();
}
#endif
...
...
include/linux/profile.h
View file @
fbd387ae
...
...
@@ -18,10 +18,10 @@ struct pt_regs;
struct
notifier_block
;
#if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS)
void
create_prof_cpu_mask
(
struct
proc_dir_entry
*
de
);
void
create_prof_cpu_mask
(
void
);
int
create_proc_profile
(
void
);
#else
static
inline
void
create_prof_cpu_mask
(
struct
proc_dir_entry
*
de
)
static
inline
void
create_prof_cpu_mask
(
void
)
{
}
...
...
kernel/profile.c
View file @
fbd387ae
...
...
@@ -462,10 +462,10 @@ static const struct file_operations prof_cpu_mask_proc_fops = {
.
write
=
prof_cpu_mask_proc_write
,
};
void
create_prof_cpu_mask
(
struct
proc_dir_entry
*
root_irq_dir
)
void
create_prof_cpu_mask
(
void
)
{
/* create /proc/irq/prof_cpu_mask */
proc_create
(
"
prof_cpu_mask"
,
0600
,
root_irq_dir
,
&
prof_cpu_mask_proc_fops
);
proc_create
(
"
irq/prof_cpu_mask"
,
0600
,
NULL
,
&
prof_cpu_mask_proc_fops
);
}
/*
...
...
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