原创 git.repo

查看兩個manifest之間的差異: 1. 建立對應的repo branch 2. repo forall -pc git log --oneline branchA...branchB      -p: 顯示project name  

原创 ltp

現在sync到google最新的ltp git,使用mmm編譯: mmm external/ltp 會因爲aio編譯失敗報錯,因此選擇單獨build需要的test case。   ​sync google ltp git: sprdro

原创 cpu_scale and freq_scale

(init/main.c)  kernel_init --> kernel_init_freeable --> ( arm64/kernel/smp.c) --> smp_prepare_cpus --> init_cpu_topol

原创 util變頻

在sugov初始化時註冊回調函數,到update_util_data中   797 static int sugov_start(struct cpufreq_policy *policy) { 823 for_each_c

原创 調度器 schedule pelt 介紹

進程類型 交互是進程:人機交互進程,如鼠標鍵盤,觸摸屏,系統響應越快越好 批處理進程:佔用較多系統資源,如編譯代碼 實時進程:對延時有嚴格要求   調度策略與調度器 用戶進程的調度策略  調度器 SCHED_NORMAL   

原创 GNU C 擴展之__attribute__ 機制簡介(轉)

摘要:     在學習linux內核代碼及一些開源軟件的源碼(如:DirectFB),經常可以看到有關__attribute__的相關使用。本文結合自己的學習經歷,較爲詳細的介紹了__attribute__相關語法及其使用。 ------

原创 Battery Charging Specification, Revision 1.2, December 7, 2010 中文

Battery Charging Specification Revision 1.2 December 7, 2010 2014.04.03 Rev0.1 轉載請註明轉自:http://blog.csdn.net/liglei 1. 

原创 (ZT)GNU C 的 __attribute__ 機制

(ZT)GNU C 的 __attribute__ 機制 2011-11-10 19:02 ----------------------------------------------------------------     原作者

原创 platform driver 學習筆記

首先從這裏開始:  static int __init pm8058_rtc_init(void) {  return platform_driver_register(&pm8058_rtc_driver); } //__init標誌對

原创 bq24160充電分析

   1、VBAT < VBATSHRT=3.0V時 對於Charger,充電IC使用IBATSHRT=50mA,打開BatteryFET,對電池進行預充電(此時BatteryFET工作在線性區即橫流區?);同時系統負載電壓被變壓至VSY

原创 USB3.0 link initialization

當Link從Polling,Recovery或Hot Reset狀態進入U0狀態時,開始進行初始化。初始化的內容主要包括Header Sequence Number Advertisement 和Rx Header Buffer Cred

原创 Universal Serial Bus 3.0 Specification, Revision 1.0——7 Link Layer

7. Link Layer The link layer has the responsibility of maintaining the link connectivity so that successful data tran

原创 usb_control_msg

調用實例 static int set_port_feature(struct usb_device *hdev, int port1, int feature) {     return usb_control_msg(hd

原创 Android_Linux休眠喚醒

static ssize_t state_store() { suspend_state_t state = PM_SUSPEND_ON; +----------------------------------------------

原创 時鐘中斷處理程序--do_timer()

start_kernel() --void timer_tick(void)   //爲Kernel提供的體系架構無關的、系統相關的時鐘中斷處理函數,通常會在體系架構相關的時鐘中斷處理函數內調用它。參考1; {     profile