#ifndef WM8766_H_INCLUDED #define WM8766_H_INCLUDED #define WM8766_LDA1 0x00 #define WM8766_RDA1 0x01 #define WM8766_DAC_CTRL 0x02 #define WM8766_INT_CTRL 0x03 #define WM8766_LDA2 0x04 #define WM8766_RDA2 0x05 #define WM8766_LDA3 0x06 #define WM8766_RDA3 0x07 #define WM8766_MASTDA 0x08 #define WM8766_DAC_CTRL2 0x09 #define WM8766_DAC_CTRL3 0x0a #define WM8766_MUTE1 0x0c #define WM8766_MUTE2 0x0f #define WM8766_RESET 0x1f /* LDAx/RDAx/MASTDA */ #define WM8766_ATT_MASK 0x0ff #define WM8766_UPDATE 0x100 /* DAC_CTRL */ #define WM8766_MUTEALL 0x001 #define WM8766_DEEMPALL 0x002 #define WM8766_PWDN 0x004 #define WM8766_ATC 0x008 #define WM8766_IZD 0x010 #define WM8766_PL_LEFT_MASK 0x060 #define WM8766_PL_LEFT_MUTE 0x000 #define WM8766_PL_LEFT_LEFT 0x020 #define WM8766_PL_LEFT_RIGHT 0x040 #define WM8766_PL_LEFT_LRMIX 0x060 #define WM8766_PL_RIGHT_MASK 0x180 #define WM8766_PL_RIGHT_MUTE 0x000 #define WM8766_PL_RIGHT_LEFT 0x080 #define WM8766_PL_RIGHT_RIGHT 0x100 #define WM8766_PL_RIGHT_LRMIX 0x180 /* INT_CTRL */ #define WM8766_FMT_MASK 0x003 #define WM8766_FMT_RJUST 0x000 #define WM8766_FMT_LJUST 0x001 #define WM8766_FMT_I2S 0x002 #define WM8766_FMT_DSP 0x003 #define WM8766_LRP 0x004 #define WM8766_BCP 0x008 #define WM8766_IWL_MASK 0x030 #define WM8766_IWL_16 0x000 #define WM8766_IWL_20 0x010 #define WM8766_IWL_24 0x020 #define WM8766_IWL_32 0x030 #define WM8766_PHASE_MASK 0x1c0 /* DAC_CTRL2 */ #define WM8766_ZCD 0x001 #define WM8766_DZFM_MASK 0x006 #define WM8766_DMUTE_MASK 0x038 #define WM8766_DEEMP_MASK 0x1c0 /* DAC_CTRL3 */ #define WM8766_DACPD_MASK 0x00e #define WM8766_PWRDNALL 0x010 #define WM8766_MS 0x020 #define WM8766_RATE_MASK 0x1c0 #define WM8766_RATE_128 0x000 #define WM8766_RATE_192 0x040 #define WM8766_RATE_256 0x080 #define WM8766_RATE_384 0x0c0 #define WM8766_RATE_512 0x100 #define WM8766_RATE_768 0x140 /* MUTE1 */ #define WM8766_MPD1 0x040 /* MUTE2 */ #define WM8766_MPD2 0x020 #endif t.cgi/linux/net-next.git/commit/include/crypto/cast6.h?id=36e854c3b8e17db0e9ace2c603d492b71d53b5cd'>commitdiff
path: root/include/crypto/cast6.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/crypto/cast6.h')
27c4ba (diff)
perf/x86/intel/rapl: Make package handling more robust
The package management code in RAPL relies on package mapping being available before a CPU is started. This changed with: 9d85eb9119f4 ("x86/smpboot: Make logical package management more robust") because the ACPI/BIOS information turned out to be unreliable, but that left RAPL in broken state. This was not noticed because on a regular boot all CPUs are online before RAPL is initialized. A possible fix would be to reintroduce the mess which allocates a package data structure in CPU prepare and when it turns out to already exist in starting throw it away later in the CPU online callback. But that's a horrible hack and not required at all because RAPL becomes functional for perf only in the CPU online callback. That's correct because user space is not yet informed about the CPU being onlined, so nothing caan rely on RAPL being available on that particular CPU. Move the allocation to the CPU online callback and simplify the hotplug handling. At this point the package mapping is established and correct. This also adds a missing check for available package data in the event_init() function. Reported-by: Yasuaki Ishimatsu <yasu.isimatu@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Sebastian Siewior <bigeasy@linutronix.de> Cc: Stephane Eranian <eranian@google.com> Cc: Vince Weaver <vincent.weaver@maine.edu> Fixes: 9d85eb9119f4 ("x86/smpboot: Make logical package management more robust") Link: http://lkml.kernel.org/r/20170131230141.212593966@linutronix.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers')