-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 358455 b: refs/heads/master c: 4383822 h: refs/heads/master i: 358453: 11235fa 358451: fcb8080 358447: a34030d v: v3
- Loading branch information
Rafael J. Wysocki
committed
Feb 23, 2013
1 parent
6972734
commit 46ae5a7
Showing
3,489 changed files
with
176,462 additions
and
89,256 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: b5d667eb392ed901fc7ae76869c7a130559e193c | ||
refs/heads/master: 4383822020c54c21eb2eb939a3233b44a51e8ca0 |
62 changes: 62 additions & 0 deletions
62
trunk/Documentation/ABI/testing/sysfs-bus-event_source-devices-events
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
What: /sys/devices/cpu/events/ | ||
/sys/devices/cpu/events/branch-misses | ||
/sys/devices/cpu/events/cache-references | ||
/sys/devices/cpu/events/cache-misses | ||
/sys/devices/cpu/events/stalled-cycles-frontend | ||
/sys/devices/cpu/events/branch-instructions | ||
/sys/devices/cpu/events/stalled-cycles-backend | ||
/sys/devices/cpu/events/instructions | ||
/sys/devices/cpu/events/cpu-cycles | ||
|
||
Date: 2013/01/08 | ||
|
||
Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org> | ||
|
||
Description: Generic performance monitoring events | ||
|
||
A collection of performance monitoring events that may be | ||
supported by many/most CPUs. These events can be monitored | ||
using the 'perf(1)' tool. | ||
|
||
The contents of each file would look like: | ||
|
||
event=0xNNNN | ||
|
||
where 'N' is a hex digit and the number '0xNNNN' shows the | ||
"raw code" for the perf event identified by the file's | ||
"basename". | ||
|
||
|
||
What: /sys/devices/cpu/events/PM_LD_MISS_L1 | ||
/sys/devices/cpu/events/PM_LD_REF_L1 | ||
/sys/devices/cpu/events/PM_CYC | ||
/sys/devices/cpu/events/PM_BRU_FIN | ||
/sys/devices/cpu/events/PM_GCT_NOSLOT_CYC | ||
/sys/devices/cpu/events/PM_BRU_MPRED | ||
/sys/devices/cpu/events/PM_INST_CMPL | ||
/sys/devices/cpu/events/PM_CMPLU_STALL | ||
|
||
Date: 2013/01/08 | ||
|
||
Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org> | ||
Linux Powerpc mailing list <linuxppc-dev@ozlabs.org> | ||
|
||
Description: POWER-systems specific performance monitoring events | ||
|
||
A collection of performance monitoring events that may be | ||
supported by the POWER CPU. These events can be monitored | ||
using the 'perf(1)' tool. | ||
|
||
These events may not be supported by other CPUs. | ||
|
||
The contents of each file would look like: | ||
|
||
event=0xNNNN | ||
|
||
where 'N' is a hex digit and the number '0xNNNN' shows the | ||
"raw code" for the perf event identified by the file's | ||
"basename". | ||
|
||
Further, multiple terms like 'event=0xNNNN' can be specified | ||
and separated with comma. All available terms are defined in | ||
the /sys/bus/event_source/devices/<dev>/format file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
What: /sys/devices/platform/ts5500/adc | ||
Date: January 2013 | ||
KernelVersion: 3.7 | ||
Contact: "Savoir-faire Linux Inc." <kernel@savoirfairelinux.com> | ||
Description: | ||
Indicates the presence of an A/D Converter. If it is present, | ||
it will display "1", otherwise "0". | ||
|
||
What: /sys/devices/platform/ts5500/ereset | ||
Date: January 2013 | ||
KernelVersion: 3.7 | ||
Contact: "Savoir-faire Linux Inc." <kernel@savoirfairelinux.com> | ||
Description: | ||
Indicates the presence of an external reset. If it is present, | ||
it will display "1", otherwise "0". | ||
|
||
What: /sys/devices/platform/ts5500/id | ||
Date: January 2013 | ||
KernelVersion: 3.7 | ||
Contact: "Savoir-faire Linux Inc." <kernel@savoirfairelinux.com> | ||
Description: | ||
Product ID of the TS board. TS-5500 ID is 0x60. | ||
|
||
What: /sys/devices/platform/ts5500/jumpers | ||
Date: January 2013 | ||
KernelVersion: 3.7 | ||
Contact: "Savoir-faire Linux Inc." <kernel@savoirfairelinux.com> | ||
Description: | ||
Bitfield showing the jumpers' state. If a jumper is present, | ||
the corresponding bit is set. For instance, 0x0e means jumpers | ||
2, 3 and 4 are set. | ||
|
||
What: /sys/devices/platform/ts5500/rs485 | ||
Date: January 2013 | ||
KernelVersion: 3.7 | ||
Contact: "Savoir-faire Linux Inc." <kernel@savoirfairelinux.com> | ||
Description: | ||
Indicates the presence of the RS485 option. If it is present, | ||
it will display "1", otherwise "0". | ||
|
||
What: /sys/devices/platform/ts5500/sram | ||
Date: January 2013 | ||
KernelVersion: 3.7 | ||
Contact: "Savoir-faire Linux Inc." <kernel@savoirfairelinux.com> | ||
Description: | ||
Indicates the presence of the SRAM option. If it is present, | ||
it will display "1", otherwise "0". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
ACPI Scan Handlers | ||
|
||
Copyright (C) 2012, Intel Corporation | ||
Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com> | ||
|
||
During system initialization and ACPI-based device hot-add, the ACPI namespace | ||
is scanned in search of device objects that generally represent various pieces | ||
of hardware. This causes a struct acpi_device object to be created and | ||
registered with the driver core for every device object in the ACPI namespace | ||
and the hierarchy of those struct acpi_device objects reflects the namespace | ||
layout (i.e. parent device objects in the namespace are represented by parent | ||
struct acpi_device objects and analogously for their children). Those struct | ||
acpi_device objects are referred to as "device nodes" in what follows, but they | ||
should not be confused with struct device_node objects used by the Device Trees | ||
parsing code (although their role is analogous to the role of those objects). | ||
|
||
During ACPI-based device hot-remove device nodes representing pieces of hardware | ||
being removed are unregistered and deleted. | ||
|
||
The core ACPI namespace scanning code in drivers/acpi/scan.c carries out basic | ||
initialization of device nodes, such as retrieving common configuration | ||
information from the device objects represented by them and populating them with | ||
appropriate data, but some of them require additional handling after they have | ||
been registered. For example, if the given device node represents a PCI host | ||
bridge, its registration should cause the PCI bus under that bridge to be | ||
enumerated and PCI devices on that bus to be registered with the driver core. | ||
Similarly, if the device node represents a PCI interrupt link, it is necessary | ||
to configure that link so that the kernel can use it. | ||
|
||
Those additional configuration tasks usually depend on the type of the hardware | ||
component represented by the given device node which can be determined on the | ||
basis of the device node's hardware ID (HID). They are performed by objects | ||
called ACPI scan handlers represented by the following structure: | ||
|
||
struct acpi_scan_handler { | ||
const struct acpi_device_id *ids; | ||
struct list_head list_node; | ||
int (*attach)(struct acpi_device *dev, const struct acpi_device_id *id); | ||
void (*detach)(struct acpi_device *dev); | ||
}; | ||
|
||
where ids is the list of IDs of device nodes the given handler is supposed to | ||
take care of, list_node is the hook to the global list of ACPI scan handlers | ||
maintained by the ACPI core and the .attach() and .detach() callbacks are | ||
executed, respectively, after registration of new device nodes and before | ||
unregistration of device nodes the handler attached to previously. | ||
|
||
The namespace scanning function, acpi_bus_scan(), first registers all of the | ||
device nodes in the given namespace scope with the driver core. Then, it tries | ||
to match a scan handler against each of them using the ids arrays of the | ||
available scan handlers. If a matching scan handler is found, its .attach() | ||
callback is executed for the given device node. If that callback returns 1, | ||
that means that the handler has claimed the device node and is now responsible | ||
for carrying out any additional configuration tasks related to it. It also will | ||
be responsible for preparing the device node for unregistration in that case. | ||
The device node's handler field is then populated with the address of the scan | ||
handler that has claimed it. | ||
|
||
If the .attach() callback returns 0, it means that the device node is not | ||
interesting to the given scan handler and may be matched against the next scan | ||
handler in the list. If it returns a (negative) error code, that means that | ||
the namespace scan should be terminated due to a serious error. The error code | ||
returned should then reflect the type of the error. | ||
|
||
The namespace trimming function, acpi_bus_trim(), first executes .detach() | ||
callbacks from the scan handlers of all device nodes in the given namespace | ||
scope (if they have scan handlers). Next, it unregisters all of the device | ||
nodes in that scope. | ||
|
||
ACPI scan handlers can be added to the list maintained by the ACPI core with the | ||
help of the acpi_scan_add_handler() function taking a pointer to the new scan | ||
handler as an argument. The order in which scan handlers are added to the list | ||
is the order in which they are matched against device nodes during namespace | ||
scans. | ||
|
||
All scan handles must be added to the list before acpi_bus_scan() is run for the | ||
first time and they cannot be removed from it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Marvell Kirkwood Platforms Device Tree Bindings | ||
----------------------------------------------- | ||
|
||
Boards with a SoC of the Marvell Kirkwood | ||
shall have the following property: | ||
|
||
Required root node property: | ||
|
||
compatible: must contain "marvell,kirkwood"; | ||
|
||
In order to support the kirkwood cpufreq driver, there must be a node | ||
cpus/cpu@0 with three clocks, "cpu_clk", "ddrclk" and "powersave", | ||
where the "powersave" clock is a gating clock used to switch the CPU | ||
between the "cpu_clk" and the "ddrclk". | ||
|
||
Example: | ||
|
||
cpus { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
cpu@0 { | ||
device_type = "cpu"; | ||
compatible = "marvell,sheeva-88SV131"; | ||
clocks = <&core_clk 1>, <&core_clk 3>, <&gate_clk 11>; | ||
clock-names = "cpu_clk", "ddrclk", "powersave"; | ||
}; |
Oops, something went wrong.