All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] [RFC] new MSR r/w functions per CPU
@ 2006-12-13 21:45 ` Rudolf Marek
  0 siblings, 0 replies; 12+ messages in thread
From: Rudolf Marek @ 2006-12-13 21:45 UTC (permalink / raw)
  To: hpa, norsk5; +Cc: lkml, LM Sensors, bluesmoke-devel

Hello all,

For my new coretemp driver[1], I need to execute the rdmsr on particular 
processor.  There is no such "global" function for that in the kernel so far.

The per CPU msr_read and msr_write are used in following drivers:

msr.c (it is static there now)
k8-edac.c  (duplicated right now -> driver in -mm)
coretemp.c (my new Core temperature sensor -> driver [1])

Question is how make an access to that functions. Enclosed patch does simple 
EXPORT_SYMBOL_GPL for them, but then both drivers (k8-edac.c and coretemp.c) 
would depend on the MSR driver. The ultimate solution would be to move this type
of function to separate module, but perhaps this is just bit overkill?

Any ideas what would be the best solution?

I would like to make sure that module refcounting is done in module.c, so I 
don't need to handle this in my patch.

Thanks,
Rudolf

Please CC me, I'm not on all lists.

[1] http://lists.lm-sensors.org/pipermail/lm-sensors/2006-December/018420.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: merge-msr-funcs.patch
Type: text/x-patch
Size: 4094 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20061213/f144eb2c/attachment.bin 

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-12-13 22:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-13 21:45 [lm-sensors] [RFC] new MSR r/w functions per CPU Rudolf Marek
2006-12-13 21:45 ` Rudolf Marek
2006-12-13 22:01 ` [lm-sensors] " H. Peter Anvin
2006-12-13 22:01   ` H. Peter Anvin
2006-12-13 22:10 ` [lm-sensors] " Dave Jones
2006-12-13 22:10   ` Dave Jones
2006-12-13 22:19   ` [lm-sensors] " H. Peter Anvin
2006-12-13 22:19     ` H. Peter Anvin
2006-12-13 22:26     ` [lm-sensors] " Dave Jones
2006-12-13 22:26       ` Dave Jones
2006-12-13 22:45       ` [lm-sensors] " H. Peter Anvin
2006-12-13 22:45         ` H. Peter Anvin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.