about cache
来源:互联网 发布:mac桌面文件放哪里 编辑:程序博客网 时间:2024/05/16 15:32
当cpu往内存里写数据时,首先会写到Cache里,这样就造成了内存和cache中数据的不一致问题,当存此数据的cache要被新的数据取代时,需要把刚才更改的数据回写到内存中。dirty bit就是标记要回写到内存中的cache数据的位.
/* if set, only the cache is modified not the HW */
u32 cache_only;
/* if set, only the HW is modified not the cache */
u32 cache_bypass;
/* if set, remember to free reg_defaults_raw */
bool cache_free;
//如果是volatile的,就使用regmap_write。
没标记cache_bypass的用snd_soc_cache_write。
标记cache_only的,sync一下。
#ifdef CONFIG_REGMAP
static int hw_write(struct snd_soc_codec *codec, unsigned int reg,
unsigned int value)
{
int ret;
if (!snd_soc_codec_volatile_register(codec, reg) &&
reg < codec->driver->reg_cache_size &&
!codec->cache_bypass) {
ret = snd_soc_cache_write(codec, reg, value);
if (ret < 0)
return -1;
}
if (codec->cache_only) {
codec->cache_sync = 1;
return 0;
}
return regmap_write(codec->control_data, reg, value);
}
- about cache
- about cache
- About LFU cache and LRU cache
- My idea about the organization about block buffer cache
- About Cache Coherence, Atomic Operation, Memory Ordering, Memory Barrier, Volatile
- LINK - About Cache Control of Azure Blob Files
- about:
- about
- About
- About
- About
- Top 2 things you should know about the Global Assembly Cache (GAC) in .NET 4.0
- cache
- cache
- Cache
- cache
- Cache
- Cache
- SQL Server 2005 行号、合并、分组
- 对easyui datagrid 进行扩展拉动滚动条到底部自动加载数据《二》
- TRILL技术及其组网模型
- Windows Phone8 使用组播通信
- Python用subprocess的Popen来调用系统命令
- about cache
- 我开始泡面了——判断一个数是否是质数
- asp.net调用接收存储过程返回值
- Linux查看文件编码格式及文件编码转换
- STM32F4 Discovery USB HID 用到的文件图解
- java快速排序算法
- 关于跨平台移动开发的经验收集
- I2S音频总线学习(二)I2S总线协议
- 获取手机中已安装apk文件信息(PackageInfo、ResolveInfo)(应用图片、应用名、包名等)