Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
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
Commits
9b5a56dd
Commit
9b5a56dd
authored
Nov 11, 2008
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sysfs' into release
parents
a0017f47
0794469d
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
16 deletions
+16
-16
drivers/acpi/ac.c
drivers/acpi/ac.c
+1
-1
drivers/acpi/battery.c
drivers/acpi/battery.c
+1
-1
drivers/acpi/processor_core.c
drivers/acpi/processor_core.c
+3
-3
drivers/acpi/scan.c
drivers/acpi/scan.c
+4
-4
drivers/acpi/sleep/proc.c
drivers/acpi/sleep/proc.c
+2
-2
drivers/acpi/thermal.c
drivers/acpi/thermal.c
+4
-4
drivers/acpi/wmi.c
drivers/acpi/wmi.c
+1
-1
No files found.
drivers/acpi/ac.c
View file @
9b5a56dd
...
@@ -241,7 +241,7 @@ static void acpi_ac_notify(acpi_handle handle, u32 event, void *data)
...
@@ -241,7 +241,7 @@ static void acpi_ac_notify(acpi_handle handle, u32 event, void *data)
acpi_ac_get_state
(
ac
);
acpi_ac_get_state
(
ac
);
acpi_bus_generate_proc_event
(
device
,
event
,
(
u32
)
ac
->
state
);
acpi_bus_generate_proc_event
(
device
,
event
,
(
u32
)
ac
->
state
);
acpi_bus_generate_netlink_event
(
device
->
pnp
.
device_class
,
acpi_bus_generate_netlink_event
(
device
->
pnp
.
device_class
,
dev
ice
->
dev
.
bus_id
,
event
,
dev
_name
(
&
device
->
dev
)
,
event
,
(
u32
)
ac
->
state
);
(
u32
)
ac
->
state
);
#ifdef CONFIG_ACPI_SYSFS_POWER
#ifdef CONFIG_ACPI_SYSFS_POWER
kobject_uevent
(
&
ac
->
charger
.
dev
->
kobj
,
KOBJ_CHANGE
);
kobject_uevent
(
&
ac
->
charger
.
dev
->
kobj
,
KOBJ_CHANGE
);
...
...
drivers/acpi/battery.c
View file @
9b5a56dd
...
@@ -781,7 +781,7 @@ static void acpi_battery_notify(acpi_handle handle, u32 event, void *data)
...
@@ -781,7 +781,7 @@ static void acpi_battery_notify(acpi_handle handle, u32 event, void *data)
acpi_bus_generate_proc_event
(
device
,
event
,
acpi_bus_generate_proc_event
(
device
,
event
,
acpi_battery_present
(
battery
));
acpi_battery_present
(
battery
));
acpi_bus_generate_netlink_event
(
device
->
pnp
.
device_class
,
acpi_bus_generate_netlink_event
(
device
->
pnp
.
device_class
,
dev
ice
->
dev
.
bus_id
,
event
,
dev
_name
(
&
device
->
dev
)
,
event
,
acpi_battery_present
(
battery
));
acpi_battery_present
(
battery
));
#ifdef CONFIG_ACPI_SYSFS_POWER
#ifdef CONFIG_ACPI_SYSFS_POWER
/* acpi_batter_update could remove power_supply object */
/* acpi_batter_update could remove power_supply object */
...
...
drivers/acpi/processor_core.c
View file @
9b5a56dd
...
@@ -760,20 +760,20 @@ static void acpi_processor_notify(acpi_handle handle, u32 event, void *data)
...
@@ -760,20 +760,20 @@ static void acpi_processor_notify(acpi_handle handle, u32 event, void *data)
acpi_bus_generate_proc_event
(
device
,
event
,
acpi_bus_generate_proc_event
(
device
,
event
,
pr
->
performance_platform_limit
);
pr
->
performance_platform_limit
);
acpi_bus_generate_netlink_event
(
device
->
pnp
.
device_class
,
acpi_bus_generate_netlink_event
(
device
->
pnp
.
device_class
,
dev
ice
->
dev
.
bus_id
,
event
,
dev
_name
(
&
device
->
dev
)
,
event
,
pr
->
performance_platform_limit
);
pr
->
performance_platform_limit
);
break
;
break
;
case
ACPI_PROCESSOR_NOTIFY_POWER
:
case
ACPI_PROCESSOR_NOTIFY_POWER
:
acpi_processor_cst_has_changed
(
pr
);
acpi_processor_cst_has_changed
(
pr
);
acpi_bus_generate_proc_event
(
device
,
event
,
0
);
acpi_bus_generate_proc_event
(
device
,
event
,
0
);
acpi_bus_generate_netlink_event
(
device
->
pnp
.
device_class
,
acpi_bus_generate_netlink_event
(
device
->
pnp
.
device_class
,
dev
ice
->
dev
.
bus_id
,
event
,
0
);
dev
_name
(
&
device
->
dev
)
,
event
,
0
);
break
;
break
;
case
ACPI_PROCESSOR_NOTIFY_THROTTLING
:
case
ACPI_PROCESSOR_NOTIFY_THROTTLING
:
acpi_processor_tstate_has_changed
(
pr
);
acpi_processor_tstate_has_changed
(
pr
);
acpi_bus_generate_proc_event
(
device
,
event
,
0
);
acpi_bus_generate_proc_event
(
device
,
event
,
0
);
acpi_bus_generate_netlink_event
(
device
->
pnp
.
device_class
,
acpi_bus_generate_netlink_event
(
device
->
pnp
.
device_class
,
dev
ice
->
dev
.
bus_id
,
event
,
0
);
dev
_name
(
&
device
->
dev
)
,
event
,
0
);
default:
default:
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"Unsupported event [0x%x]
\n
"
,
event
));
"Unsupported event [0x%x]
\n
"
,
event
));
...
...
drivers/acpi/scan.c
View file @
9b5a56dd
...
@@ -109,8 +109,7 @@ static int acpi_bus_hot_remove_device(void *context)
...
@@ -109,8 +109,7 @@ static int acpi_bus_hot_remove_device(void *context)
return
0
;
return
0
;
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"Hot-removing device %s...
\n
"
,
device
->
dev
.
bus_id
));
"Hot-removing device %s...
\n
"
,
dev_name
(
&
device
->
dev
)));
if
(
acpi_bus_trim
(
device
,
1
))
{
if
(
acpi_bus_trim
(
device
,
1
))
{
printk
(
KERN_ERR
PREFIX
printk
(
KERN_ERR
PREFIX
...
@@ -460,7 +459,7 @@ static int acpi_device_register(struct acpi_device *device,
...
@@ -460,7 +459,7 @@ static int acpi_device_register(struct acpi_device *device,
acpi_device_bus_id
->
instance_no
=
0
;
acpi_device_bus_id
->
instance_no
=
0
;
list_add_tail
(
&
acpi_device_bus_id
->
node
,
&
acpi_bus_id_list
);
list_add_tail
(
&
acpi_device_bus_id
->
node
,
&
acpi_bus_id_list
);
}
}
sprintf
(
device
->
dev
.
bus_id
,
"%s:%02x"
,
acpi_device_bus_id
->
bus_id
,
acpi_device_bus_id
->
instance_no
);
dev_set_name
(
&
device
->
dev
,
"%s:%02x"
,
acpi_device_bus_id
->
bus_id
,
acpi_device_bus_id
->
instance_no
);
if
(
device
->
parent
)
{
if
(
device
->
parent
)
{
list_add_tail
(
&
device
->
node
,
&
device
->
parent
->
children
);
list_add_tail
(
&
device
->
node
,
&
device
->
parent
->
children
);
...
@@ -484,7 +483,8 @@ static int acpi_device_register(struct acpi_device *device,
...
@@ -484,7 +483,8 @@ static int acpi_device_register(struct acpi_device *device,
result
=
acpi_device_setup_files
(
device
);
result
=
acpi_device_setup_files
(
device
);
if
(
result
)
if
(
result
)
printk
(
KERN_ERR
PREFIX
"Error creating sysfs interface for device %s
\n
"
,
device
->
dev
.
bus_id
);
printk
(
KERN_ERR
PREFIX
"Error creating sysfs interface for device %s
\n
"
,
dev_name
(
&
device
->
dev
));
device
->
removal_type
=
ACPI_BUS_REMOVAL_NORMAL
;
device
->
removal_type
=
ACPI_BUS_REMOVAL_NORMAL
;
return
0
;
return
0
;
...
...
drivers/acpi/sleep/proc.c
View file @
9b5a56dd
...
@@ -366,8 +366,8 @@ acpi_system_wakeup_device_seq_show(struct seq_file *seq, void *offset)
...
@@ -366,8 +366,8 @@ acpi_system_wakeup_device_seq_show(struct seq_file *seq, void *offset)
dev
->
wakeup
.
state
.
enabled
?
"enabled"
:
"disabled"
);
dev
->
wakeup
.
state
.
enabled
?
"enabled"
:
"disabled"
);
if
(
ldev
)
if
(
ldev
)
seq_printf
(
seq
,
"%s:%s"
,
seq_printf
(
seq
,
"%s:%s"
,
ldev
->
bus
?
ldev
->
bus
->
name
:
"no-bus"
,
dev_name
(
ldev
)
?
ldev
->
bus
->
name
:
"no-bus"
,
ldev
->
bus_id
);
dev_name
(
ldev
)
);
seq_printf
(
seq
,
"
\n
"
);
seq_printf
(
seq
,
"
\n
"
);
put_device
(
ldev
);
put_device
(
ldev
);
...
...
drivers/acpi/thermal.c
View file @
9b5a56dd
...
@@ -575,7 +575,7 @@ static int acpi_thermal_critical(struct acpi_thermal *tz)
...
@@ -575,7 +575,7 @@ static int acpi_thermal_critical(struct acpi_thermal *tz)
acpi_bus_generate_proc_event
(
tz
->
device
,
ACPI_THERMAL_NOTIFY_CRITICAL
,
acpi_bus_generate_proc_event
(
tz
->
device
,
ACPI_THERMAL_NOTIFY_CRITICAL
,
tz
->
trips
.
critical
.
flags
.
enabled
);
tz
->
trips
.
critical
.
flags
.
enabled
);
acpi_bus_generate_netlink_event
(
tz
->
device
->
pnp
.
device_class
,
acpi_bus_generate_netlink_event
(
tz
->
device
->
pnp
.
device_class
,
tz
->
device
->
dev
.
bus_id
,
dev_name
(
&
tz
->
device
->
dev
)
,
ACPI_THERMAL_NOTIFY_CRITICAL
,
ACPI_THERMAL_NOTIFY_CRITICAL
,
tz
->
trips
.
critical
.
flags
.
enabled
);
tz
->
trips
.
critical
.
flags
.
enabled
);
...
@@ -604,7 +604,7 @@ static int acpi_thermal_hot(struct acpi_thermal *tz)
...
@@ -604,7 +604,7 @@ static int acpi_thermal_hot(struct acpi_thermal *tz)
acpi_bus_generate_proc_event
(
tz
->
device
,
ACPI_THERMAL_NOTIFY_HOT
,
acpi_bus_generate_proc_event
(
tz
->
device
,
ACPI_THERMAL_NOTIFY_HOT
,
tz
->
trips
.
hot
.
flags
.
enabled
);
tz
->
trips
.
hot
.
flags
.
enabled
);
acpi_bus_generate_netlink_event
(
tz
->
device
->
pnp
.
device_class
,
acpi_bus_generate_netlink_event
(
tz
->
device
->
pnp
.
device_class
,
tz
->
device
->
dev
.
bus_id
,
dev_name
(
&
tz
->
device
->
dev
)
,
ACPI_THERMAL_NOTIFY_HOT
,
ACPI_THERMAL_NOTIFY_HOT
,
tz
->
trips
.
hot
.
flags
.
enabled
);
tz
->
trips
.
hot
.
flags
.
enabled
);
...
@@ -1591,14 +1591,14 @@ static void acpi_thermal_notify(acpi_handle handle, u32 event, void *data)
...
@@ -1591,14 +1591,14 @@ static void acpi_thermal_notify(acpi_handle handle, u32 event, void *data)
acpi_thermal_check
(
tz
);
acpi_thermal_check
(
tz
);
acpi_bus_generate_proc_event
(
device
,
event
,
0
);
acpi_bus_generate_proc_event
(
device
,
event
,
0
);
acpi_bus_generate_netlink_event
(
device
->
pnp
.
device_class
,
acpi_bus_generate_netlink_event
(
device
->
pnp
.
device_class
,
dev
ice
->
dev
.
bus_id
,
event
,
0
);
dev
_name
(
&
device
->
dev
)
,
event
,
0
);
break
;
break
;
case
ACPI_THERMAL_NOTIFY_DEVICES
:
case
ACPI_THERMAL_NOTIFY_DEVICES
:
acpi_thermal_trips_update
(
tz
,
ACPI_TRIPS_REFRESH_DEVICES
);
acpi_thermal_trips_update
(
tz
,
ACPI_TRIPS_REFRESH_DEVICES
);
acpi_thermal_check
(
tz
);
acpi_thermal_check
(
tz
);
acpi_bus_generate_proc_event
(
device
,
event
,
0
);
acpi_bus_generate_proc_event
(
device
,
event
,
0
);
acpi_bus_generate_netlink_event
(
device
->
pnp
.
device_class
,
acpi_bus_generate_netlink_event
(
device
->
pnp
.
device_class
,
dev
ice
->
dev
.
bus_id
,
event
,
0
);
dev
_name
(
&
device
->
dev
)
,
event
,
0
);
break
;
break
;
default:
default:
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
...
...
drivers/acpi/wmi.c
View file @
9b5a56dd
...
@@ -660,7 +660,7 @@ static void acpi_wmi_notify(acpi_handle handle, u32 event, void *data)
...
@@ -660,7 +660,7 @@ static void acpi_wmi_notify(acpi_handle handle, u32 event, void *data)
wblock
->
handler
(
event
,
wblock
->
handler_data
);
wblock
->
handler
(
event
,
wblock
->
handler_data
);
acpi_bus_generate_netlink_event
(
acpi_bus_generate_netlink_event
(
device
->
pnp
.
device_class
,
dev
ice
->
dev
.
bus_id
,
device
->
pnp
.
device_class
,
dev
_name
(
&
device
->
dev
)
,
event
,
0
);
event
,
0
);
break
;
break
;
}
}
...
...
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