전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

UM0851 데이터시트(PDF) 231 Page - STMicroelectronics

부품명 UM0851
상세설명  SPEAr is a family of highly customizable ARM-based embedded
PDF  245 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0851 데이터시트(HTML) 231 Page - STMicroelectronics

Back Button UM0851 Datasheet HTML 227Page - STMicroelectronics UM0851 Datasheet HTML 228Page - STMicroelectronics UM0851 Datasheet HTML 229Page - STMicroelectronics UM0851 Datasheet HTML 230Page - STMicroelectronics UM0851 Datasheet HTML 231Page - STMicroelectronics UM0851 Datasheet HTML 232Page - STMicroelectronics UM0851 Datasheet HTML 233Page - STMicroelectronics UM0851 Datasheet HTML 234Page - STMicroelectronics UM0851 Datasheet HTML 235Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 231 / 245 page
background image
UM0851
Power management section
Doc ID 16604 Rev 2
231/245
10.3.3 CPU freq framework API
The architecture specific CPUfreq driver registers into the CPUfreq core via the following
structure.
struct cpufreq_driver {
struct module*owner;
char
name[CPUFREQ_NAME_LEN];
u8
flags;
int
(*init)(struct cpufreq_policy *policy);
int
(*verify)(struct cpufreq_policy *policy);
int
(*setpolicy)(struct cpufreq_policy *policy);
int
(*target)(struct cpufreq_policy *policy,
unsigned int target_freq,
unsigned int relation);
/* should be defined, if possible */
unsigned int(*get)(unsigned int cpu);
/* optional */
unsigned int (*getavg)(unsigned int cpu);
int
(*exit)(struct cpufreq_policy *policy);
int
(*suspend)(struct cpufreq_policy *policy, pm_message_t pmsg);
int
(*resume)(struct cpufreq_policy *policy);
struct freq_attr
**attr;
};
Above defined structure provide few call back functions that have to be added in the SPEAr
architecture code to provide the transitions into the new frequency for the CPU as requested
by the CPUfreq framework.
●
init (Per-CPU Initialization): Whenever a new CPU is registered with the device model,
or after the CPUfreq driver registers itself, the per-CPU initialization function
cpufreq_driver. init is called. The driver provides in the "Policy" related information to
the CPUfreq core. This includes the CPU operating/min/max frequency, and
information related to the governor that the core should use for switching the frequency.
The policy related information is captured in the following data structure by the kernel:
struct cpufreq_policy {
cpumask_t
cpus;
/* CPUs requiring sw coordination */
cpumask_t
related_cpus; /* CPUs with any coordination */
unsigned int
shared_type; /* ANY or ALL affected CPUs should set
cpufreq
*/
unsigned int
cpu;
/* cpu nr of registered CPU */
struct cpufreq_cpuinfo
cpuinfo;/* see above */
unsigned int
min;
/* in kHz */
unsigned int
max;
/* in kHz */
unsigned int
cur;
/* in kHz, only needed if cpufreq governors are used
*/
unsigned int
policy; /* see above */
struct cpufreq_governor *governor;
struct work_struct
update; /* if update_policy() needs to be called, but you're
in IRQ context */
struct cpufreq_real_policy
user_policy;
struct kobject
kobj;
struct completion
kobj_unregister;
●
Verify: When the user decides that a new policy (consisting of "policy, governor, min,
max") shall be set, this policy must be validated so that incompatible values can be
corrected.
●
Target: The target call has three arguments: struct cpufreq_policy *policy, unsigned int
target_frequency, unsigned int relation. The CPUfreq driver sets the new frequency
when called here. Apart from the change in frequency the driver must also notify into



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com