moved to kernel 3.10 from master, waiting for altera to tag it