Merge most of tag 'tags/exynos-dt' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6.git] / arch / x86 / lib / msr.c
blob8f8eebdca7d4cadc249405e8a0c50108e34edc3b
1 #include <linux/module.h>
2 #include <linux/preempt.h>
3 #include <asm/msr.h>
5 struct msr *msrs_alloc(void)
7 struct msr *msrs = NULL;
9 msrs = alloc_percpu(struct msr);
10 if (!msrs) {
11 pr_warning("%s: error allocating msrs\n", __func__);
12 return NULL;
15 return msrs;
17 EXPORT_SYMBOL(msrs_alloc);
19 void msrs_free(struct msr *msrs)
21 free_percpu(msrs);
23 EXPORT_SYMBOL(msrs_free);