/* * Copyright (c) 2013 Heiko Stuebner * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * Device Tree binding constants clock controllers of Samsung S3C2443 and later. */ #ifndef _DT_BINDINGS_CLOCK_SAMSUNG_S3C2443_CLOCK_H #define _DT_BINDINGS_CLOCK_SAMSUNG_S3C2443_CLOCK_H /* * Let each exported clock get a unique index, which is used on DT-enabled * platforms to lookup the clock from a clock specifier. These indices are * therefore considered an ABI and so must not be changed. This implies * that new clocks should be added either in free spaces between clock groups * or at the end. */ /* Core clocks. */ #define MSYSCLK 1 #define ESYSCLK 2 #define ARMDIV 3 #define ARMCLK 4 #define HCLK 5 #define PCLK 6 /* Special clocks */ #define SCLK_HSSPI0 16 #define SCLK_FIMD 17 #define SCLK_I2S0 18 #define SCLK_I2S1 19 #define SCLK_HSMMC1 20 #define SCLK_HSMMC_EXT 21 #define SCLK_CAM 22 #define SCLK_UART 23 #define SCLK_USBH 24 /* Muxes */ #define MUX_HSSPI0 32 #define MUX_HSSPI1 33 #define MUX_HSMMC0 34 #define MUX_HSMMC1 35 /* hclk-gates */ #define HCLK_DMA0 48 #define HCLK_DMA1 49 #define HCLK_DMA2 50 #define HCLK_DMA3 51 #define HCLK_DMA4 52 #define HCLK_DMA5 53 #define HCLK_DMA6 54 #define HCLK_DMA7 55 #define HCLK_CAM 56 #define HCLK_LCD 57 #define HCLK_USBH 58 #define HCLK_USBD 59 #define HCLK_IROM 60 #define HCLK_HSMMC0 61 #define HCLK_HSMMC1 62 #define HCLK_CFC 63 #define HCLK_SSMC 64 #define HCLK_DRAM 65 #define HCLK_2D 66 /* pclk-gates */ #define PCLK_UART0 72 #define PCLK_UART1 73 #define PCLK_UART2 74 #define PCLK_UART3 75 #define PCLK_I2C0 76 #define PCLK_SDI 77 #define PCLK_SPI0 78 #define PCLK_ADC 79 #define PCLK_AC97 80 #define PCLK_I2S0 81 #define PCLK_PWM 82 #define PCLK_WDT 83 #define PCLK_RTC 84 #define PCLK_GPIO 85 #define PCLK_SPI1 86 #define PCLK_CHIPID 87 #define PCLK_I2C1 88 #define PCLK_I2S1 89 #define PCLK_PCM 90 /* Total number of clocks. */ #define NR_CLKS (PCLK_PCM + 1) #endif /* _DT_BINDINGS_CLOCK_SAMSUNG_S3C2443_CLOCK_H */ ss='form'>
path: root/sound/soc/intel/boards/broadwell.c
diff options
context:
space:
mode:
authorDexuan Cui <decui@microsoft.com>2017-01-28 11:46:02 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-31 10:59:48 +0100
commit433e19cf33d34bb6751c874a9c00980552fe508c (patch)
treece6547ef2987fbb289fa28f03536328a42781651 /sound/soc/intel/boards/broadwell.c
parent191e885a2e130e639bb0c8ee350d7047294f2ce6 (diff)
Drivers: hv: vmbus: finally fix hv_need_to_signal_on_read()
Commit a389fcfd2cb5 ("Drivers: hv: vmbus: Fix signaling logic in hv_need_to_signal_on_read()") added the proper mb(), but removed the test "prev_write_sz < pending_sz" when making the signal decision. As a result, the guest can signal the host unnecessarily, and then the host can throttle the guest because the host thinks the guest is buggy or malicious; finally the user running stress test can perceive intermittent freeze of the guest. This patch brings back the test, and properly handles the in-place consumption APIs used by NetVSC (see get_next_pkt_raw(), put_pkt_raw() and commit_rd_index()). Fixes: a389fcfd2cb5 ("Drivers: hv: vmbus: Fix signaling logic in hv_need_to_signal_on_read()") Signed-off-by: Dexuan Cui <decui@microsoft.com> Reported-by: Rolf Neugebauer <rolf.neugebauer@docker.com> Tested-by: Rolf Neugebauer <rolf.neugebauer@docker.com> Cc: "K. Y. Srinivasan" <kys@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Stephen Hemminger <sthemmin@microsoft.com> Cc: <stable@vger.kernel.org> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/soc/intel/boards/broadwell.c')