Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146134
b: refs/heads/master
c: ee81151
h: refs/heads/master
v: v3
  • Loading branch information
Markus Metzger authored and Ingo Molnar committed Apr 7, 2009
1 parent a0aad10 commit 29c4632
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2311f0de21c17b2a8b960677a9cccfbfa52beb35
refs/heads/master: ee811517a5604aa63fae803b7c044712699e1303
7 changes: 5 additions & 2 deletions trunk/arch/x86/kernel/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ struct ds_configuration {
/* Control bit-masks indexed by enum ds_feature: */
unsigned long ctl[dsf_ctl_max];
};
static DEFINE_PER_CPU(struct ds_configuration, ds_cfg_array);
static struct ds_configuration ds_cfg __read_mostly;

#define ds_cfg per_cpu(ds_cfg_array, smp_processor_id())

/* Maximal size of a DS configuration: */
#define MAX_SIZEOF_DS (12 * 8)
Expand Down Expand Up @@ -1268,6 +1267,10 @@ ds_configure(const struct ds_configuration *cfg,

void __cpuinit ds_init_intel(struct cpuinfo_x86 *c)
{
/* Only configure the first cpu. Others are identical. */
if (ds_cfg.name)
return;

switch (c->x86) {
case 0x6:
switch (c->x86_model) {
Expand Down

0 comments on commit 29c4632

Please sign in to comment.