Skip to content

Instantly share code, notes, and snippets.

View shadeslayer's full-sized avatar
👁️‍🗨️

Rohan Garg shadeslayer

👁️‍🗨️
View GitHub Profile
From a2f5c540b903143e5a0b025cd2f81a69ad809072 Mon Sep 17 00:00:00 2001
From: Arun Raghavan <arun.raghavan@collabora.co.uk>
Date: Tue, 10 Jul 2012 08:55:58 +0530
Subject: [PATCH] apple-gmux: Restore switch registers on suspend/resume
After suspend and resume, the values of these registers seem to change
from what they were at suspend time, potentially preventing the actual
output lines from being enabled post-resume. This saves relevant state
at suspend and restores it when resumed.
@shadeslayer
shadeslayer / latency.txt
Created May 31, 2012 15:50 — forked from jboner/latency.txt
Latency numbers every programmer should know
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns
Mutex lock/unlock 25 ns
Main memory reference 100 ns
Compress 1K bytes with Zippy 3,000 ns
Send 2K bytes over 1 Gbps network 20,000 ns
Read 1 MB sequentially from memory 250,000 ns
Round trip within same datacenter 500,000 ns
Disk seek 10,000,000 ns