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
23f3c02f
Commit
23f3c02f
authored
Mar 05, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://ldm.bkbits.net/linux-2.5-core
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
441875b2
91fb20f6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
11 deletions
+6
-11
drivers/base/platform.c
drivers/base/platform.c
+2
-5
drivers/cpufreq/userspace.c
drivers/cpufreq/userspace.c
+2
-2
fs/filesystems.c
fs/filesystems.c
+1
-3
fs/sysfs/mount.c
fs/sysfs/mount.c
+1
-1
No files found.
drivers/base/platform.c
View file @
23f3c02f
...
...
@@ -59,12 +59,9 @@ void platform_device_unregister(struct platform_device * pdev)
static
int
platform_match
(
struct
device
*
dev
,
struct
device_driver
*
drv
)
{
char
name
[
BUS_ID_SIZE
]
;
struct
platform_device
*
pdev
=
container_of
(
dev
,
struct
platform_device
,
dev
)
;
if
(
sscanf
(
dev
->
bus_id
,
"%s"
,
name
))
return
(
strcmp
(
name
,
drv
->
name
)
==
0
);
return
0
;
return
(
strncmp
(
pdev
->
name
,
drv
->
name
,
BUS_ID_SIZE
)
==
0
);
}
struct
bus_type
platform_bus_type
=
{
...
...
drivers/cpufreq/userspace.c
View file @
23f3c02f
...
...
@@ -511,7 +511,7 @@ static int cpufreq_governor_userspace(struct cpufreq_policy *policy,
cpu_min_freq
[
cpu
]
=
policy
->
min
;
cpu_max_freq
[
cpu
]
=
policy
->
max
;
cpu_cur_freq
[
cpu
]
=
policy
->
cur
;
device_create_file
(
policy
->
intf
.
dev
,
&
dev_attr_scaling_setspeed
);
device_create_file
(
policy
->
dev
,
&
dev_attr_scaling_setspeed
);
memcpy
(
&
current_policy
[
cpu
],
policy
,
sizeof
(
struct
cpufreq_policy
));
up
(
&
userspace_sem
);
break
;
...
...
@@ -520,7 +520,7 @@ static int cpufreq_governor_userspace(struct cpufreq_policy *policy,
cpu_is_managed
[
cpu
]
=
0
;
cpu_min_freq
[
cpu
]
=
0
;
cpu_max_freq
[
cpu
]
=
0
;
device_remove_file
(
policy
->
intf
.
dev
,
&
dev_attr_scaling_setspeed
);
device_remove_file
(
policy
->
dev
,
&
dev_attr_scaling_setspeed
);
up
(
&
userspace_sem
);
module_put
(
THIS_MODULE
);
break
;
...
...
fs/filesystems.c
View file @
23f3c02f
...
...
@@ -125,9 +125,7 @@ int register_filesystem(struct file_system_type * fs)
if
(
!
res
)
{
/* we implicitly possess reference to @fs during registration,
* so it cannot be unregister from under us. */
if
(
register_fs_subsys
(
fs
))
printk
(
KERN_WARNING
"Failed to register '%s' in sysfs
\n
"
,
fs
->
name
);
register_fs_subsys
(
fs
);
}
return
res
;
}
...
...
fs/sysfs/mount.c
View file @
23f3c02f
...
...
@@ -33,7 +33,7 @@ static int sysfs_fill_super(struct super_block *sb, void *data, int silent)
sb
->
s_op
=
&
sysfs_ops
;
sysfs_sb
=
sb
;
inode
=
sysfs_new_inode
(
S_IFDIR
|
S_IR
UGO
|
S_IWUSR
);
inode
=
sysfs_new_inode
(
S_IFDIR
|
S_IR
WXU
|
S_IRUGO
|
S_IXUGO
);
if
(
inode
)
{
inode
->
i_op
=
&
simple_dir_inode_operations
;
inode
->
i_fop
=
&
simple_dir_operations
;
...
...
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