Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356383
b: refs/heads/master
c: d69f1d7
h: refs/heads/master
i:
  356381: ede4316
  356379: bcbfa31
  356375: f51f33b
  356367: 61a9c37
  356351: 0d2f364
v: v3
  • Loading branch information
Thomas Waldecker authored and Benjamin Herrenschmidt committed Jan 10, 2013
1 parent 1d16dc9 commit 30e4430
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bf99de36e48678c61adb697496e0364c610bbbfc
refs/heads/master: d69f1d7fa156ae2883bb3ba099046319cf00ccf6
10 changes: 5 additions & 5 deletions trunk/Documentation/powerpc/cpu_features.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ split instruction and data caches, and if the CPU supports the DOZE and NAP
sleep modes.

Detection of the feature set is simple. A list of processors can be found in
arch/ppc/kernel/cputable.c. The PVR register is masked and compared with each
value in the list. If a match is found, the cpu_features of cur_cpu_spec is
assigned to the feature bitmask for this processor and a __setup_cpu function
is called.
arch/powerpc/kernel/cputable.c. The PVR register is masked and compared with
each value in the list. If a match is found, the cpu_features of cur_cpu_spec
is assigned to the feature bitmask for this processor and a __setup_cpu
function is called.

C code may test 'cur_cpu_spec[smp_processor_id()]->cpu_features' for a
particular feature bit. This is done in quite a few places, for example
Expand Down Expand Up @@ -51,6 +51,6 @@ should be used in the majority of cases.

The END_FTR_SECTION macros are implemented by storing information about this
code in the '__ftr_fixup' ELF section. When do_cpu_ftr_fixups
(arch/ppc/kernel/misc.S) is invoked, it will iterate over the records in
(arch/powerpc/kernel/misc.S) is invoked, it will iterate over the records in
__ftr_fixup, and if the required feature is not present it will loop writing
nop's from each BEGIN_FTR_SECTION to END_FTR_SECTION.

0 comments on commit 30e4430

Please sign in to comment.