#include #include #include #include #include #include #include #include #include #include int main(int argc, char **argv) { int cpu, fd; long long msr; char msr_file_name[64]; if (argc != 2) return 1; errno = 0; cpu = strtol(argv[1], (char **) NULL, 10); if (errno) return 1; sprintf(msr_file_name, "/dev/cpu/%d/msr", cpu); fd = open(msr_file_name, O_RDONLY); if (fd == -1) { perror("Failed to open"); return 1; } pread(fd, &msr, sizeof(msr), 0x199); printf("msr 0x199: 0x%llx\n", msr); return 0; } pan='2'>cgit logo index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
acf67b75180b26e2d62b7d482652'>ntb
diff options
AgeCommit message (Expand)AuthorFilesLines
context:
space:
mode:
authorRask Ingemann Lambertsen <rask@formelder.dk>2017-01-21 17:11:43 +0100
committerMark Brown <broonie@kernel.org>2017-01-23 18:10:05 +0000
commitd0e287a401d9acf67b75180b26e2d62b7d482652 (patch)
treef1ba3cd0583e38846c4f6e32eee74a25a2739a31 /tools/testing/selftests/ntb
parentd00b74613fb18dfd0a5aa99270ee2e72d5c808d7 (diff)
regulator: axp20x: AXP806: Fix dcdcb being set instead of dcdce
A typo or copy-paste bug means that the register access intended for regulator dcdce goes to dcdcb instead. This patch corrects it. Fixes: 2ca342d391e3 (regulator: axp20x: Support AXP806 variant) Signed-off-by: Rask Ingemann Lambertsen <rask@formelder.dk> Acked-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/testing/selftests/ntb')