mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 10:11:36 +00:00
abf917cd91
If we want to stop the tick further idle, we need to be able to account the cputime without using the tick. Virtual based cputime accounting solves that problem by hooking into kernel/user boundaries. However implementing CONFIG_VIRT_CPU_ACCOUNTING require low level hooks and involves more overhead. But we already have a generic context tracking subsystem that is required for RCU needs by archs which plan to shut down the tick outside idle. This patch implements a generic virtual based cputime accounting that relies on these generic kernel/user hooks. There are some upsides of doing this: - This requires no arch code to implement CONFIG_VIRT_CPU_ACCOUNTING if context tracking is already built (already necessary for RCU in full tickless mode). - We can rely on the generic context tracking subsystem to dynamically (de)activate the hooks, so that we can switch anytime between virtual and tick based accounting. This way we don't have the overhead of the virtual accounting when the tick is running periodically. And one downside: - There is probably more overhead than a native virtual based cputime accounting. But this relies on hooks that are already set anyway. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Li Zhong <zhong@linux.vnet.ibm.com> Cc: Namhyung Kim <namhyung.kim@lge.com> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Paul Gortmaker <paul.gortmaker@windriver.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Thomas Gleixner <tglx@linutronix.de>
147 lines
3.1 KiB
Plaintext
147 lines
3.1 KiB
Plaintext
CONFIG_PPC64=y
|
|
CONFIG_PPC_BOOK3E_64=y
|
|
# CONFIG_VIRT_CPU_ACCOUNTING_NATIVE is not set
|
|
CONFIG_SMP=y
|
|
CONFIG_NR_CPUS=2
|
|
CONFIG_EXPERIMENTAL=y
|
|
CONFIG_SYSVIPC=y
|
|
CONFIG_BSD_PROCESS_ACCT=y
|
|
CONFIG_IRQ_DOMAIN_DEBUG=y
|
|
CONFIG_NO_HZ=y
|
|
CONFIG_HIGH_RES_TIMERS=y
|
|
CONFIG_IKCONFIG=y
|
|
CONFIG_IKCONFIG_PROC=y
|
|
CONFIG_LOG_BUF_SHIFT=14
|
|
CONFIG_BLK_DEV_INITRD=y
|
|
CONFIG_EXPERT=y
|
|
CONFIG_KALLSYMS_ALL=y
|
|
CONFIG_MODULES=y
|
|
CONFIG_MODULE_UNLOAD=y
|
|
CONFIG_MODULE_FORCE_UNLOAD=y
|
|
CONFIG_MODVERSIONS=y
|
|
# CONFIG_BLK_DEV_BSG is not set
|
|
CONFIG_PARTITION_ADVANCED=y
|
|
CONFIG_MAC_PARTITION=y
|
|
CONFIG_P5020_DS=y
|
|
CONFIG_P5040_DS=y
|
|
# CONFIG_PPC_OF_BOOT_TRAMPOLINE is not set
|
|
CONFIG_BINFMT_MISC=m
|
|
CONFIG_IRQ_ALL_CPUS=y
|
|
CONFIG_PCIEPORTBUS=y
|
|
CONFIG_PCI_MSI=y
|
|
CONFIG_RAPIDIO=y
|
|
CONFIG_FSL_RIO=y
|
|
CONFIG_NET=y
|
|
CONFIG_PACKET=y
|
|
CONFIG_UNIX=y
|
|
CONFIG_XFRM_USER=y
|
|
CONFIG_NET_KEY=y
|
|
CONFIG_INET=y
|
|
CONFIG_IP_MULTICAST=y
|
|
CONFIG_IP_ADVANCED_ROUTER=y
|
|
CONFIG_IP_MULTIPLE_TABLES=y
|
|
CONFIG_IP_ROUTE_MULTIPATH=y
|
|
CONFIG_IP_ROUTE_VERBOSE=y
|
|
CONFIG_IP_PNP=y
|
|
CONFIG_IP_PNP_DHCP=y
|
|
CONFIG_IP_PNP_BOOTP=y
|
|
CONFIG_IP_PNP_RARP=y
|
|
CONFIG_NET_IPIP=y
|
|
CONFIG_IP_MROUTE=y
|
|
CONFIG_IP_PIMSM_V1=y
|
|
CONFIG_IP_PIMSM_V2=y
|
|
CONFIG_ARPD=y
|
|
CONFIG_INET_ESP=y
|
|
# CONFIG_INET_XFRM_MODE_BEET is not set
|
|
# CONFIG_INET_LRO is not set
|
|
CONFIG_IPV6=y
|
|
CONFIG_IP_SCTP=m
|
|
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
|
|
CONFIG_DEVTMPFS=y
|
|
CONFIG_MTD=y
|
|
CONFIG_MTD_CMDLINE_PARTS=y
|
|
CONFIG_MTD_CHAR=y
|
|
CONFIG_MTD_BLOCK=y
|
|
CONFIG_MTD_CFI=y
|
|
CONFIG_MTD_CFI_AMDSTD=y
|
|
CONFIG_MTD_PHYSMAP_OF=y
|
|
CONFIG_MTD_M25P80=y
|
|
CONFIG_MTD_NAND=y
|
|
CONFIG_MTD_NAND_FSL_ELBC=y
|
|
CONFIG_MTD_NAND_FSL_IFC=y
|
|
CONFIG_PROC_DEVICETREE=y
|
|
CONFIG_BLK_DEV_LOOP=y
|
|
CONFIG_BLK_DEV_RAM=y
|
|
CONFIG_BLK_DEV_RAM_SIZE=131072
|
|
CONFIG_EEPROM_LEGACY=y
|
|
CONFIG_ATA=y
|
|
CONFIG_SATA_FSL=y
|
|
CONFIG_SATA_SIL24=y
|
|
CONFIG_NETDEVICES=y
|
|
CONFIG_DUMMY=y
|
|
CONFIG_INPUT_FF_MEMLESS=m
|
|
# CONFIG_INPUT_MOUSEDEV is not set
|
|
# CONFIG_INPUT_KEYBOARD is not set
|
|
# CONFIG_INPUT_MOUSE is not set
|
|
CONFIG_SERIO_LIBPS2=y
|
|
CONFIG_SERIAL_8250=y
|
|
CONFIG_SERIAL_8250_CONSOLE=y
|
|
CONFIG_SERIAL_8250_MANY_PORTS=y
|
|
CONFIG_SERIAL_8250_DETECT_IRQ=y
|
|
CONFIG_SERIAL_8250_RSA=y
|
|
CONFIG_I2C=y
|
|
CONFIG_I2C_CHARDEV=y
|
|
CONFIG_I2C_MPC=y
|
|
CONFIG_SPI=y
|
|
CONFIG_SPI_GPIO=y
|
|
CONFIG_SPI_FSL_SPI=y
|
|
CONFIG_SPI_FSL_ESPI=y
|
|
# CONFIG_HWMON is not set
|
|
CONFIG_VIDEO_OUTPUT_CONTROL=y
|
|
CONFIG_USB_HID=m
|
|
CONFIG_USB=y
|
|
CONFIG_USB_MON=y
|
|
CONFIG_USB_EHCI_HCD=y
|
|
CONFIG_USB_EHCI_FSL=y
|
|
CONFIG_USB_STORAGE=y
|
|
CONFIG_MMC=y
|
|
CONFIG_MMC_SDHCI=y
|
|
CONFIG_EDAC=y
|
|
CONFIG_EDAC_MM_EDAC=y
|
|
CONFIG_DMADEVICES=y
|
|
CONFIG_FSL_DMA=y
|
|
CONFIG_EXT2_FS=y
|
|
CONFIG_EXT3_FS=y
|
|
CONFIG_ISO9660_FS=m
|
|
CONFIG_JOLIET=y
|
|
CONFIG_ZISOFS=y
|
|
CONFIG_UDF_FS=m
|
|
CONFIG_MSDOS_FS=m
|
|
CONFIG_VFAT_FS=y
|
|
CONFIG_NTFS_FS=y
|
|
CONFIG_PROC_KCORE=y
|
|
CONFIG_TMPFS=y
|
|
CONFIG_HUGETLBFS=y
|
|
# CONFIG_MISC_FILESYSTEMS is not set
|
|
CONFIG_NFS_FS=y
|
|
CONFIG_NFS_V4=y
|
|
CONFIG_ROOT_NFS=y
|
|
CONFIG_NFSD=m
|
|
CONFIG_NLS_ISO8859_1=y
|
|
CONFIG_NLS_UTF8=m
|
|
CONFIG_CRC_T10DIF=y
|
|
CONFIG_FRAME_WARN=1024
|
|
CONFIG_MAGIC_SYSRQ=y
|
|
CONFIG_DEBUG_FS=y
|
|
CONFIG_DEBUG_SHIRQ=y
|
|
CONFIG_DETECT_HUNG_TASK=y
|
|
CONFIG_DEBUG_INFO=y
|
|
CONFIG_CRYPTO_NULL=y
|
|
CONFIG_CRYPTO_PCBC=m
|
|
CONFIG_CRYPTO_MD4=y
|
|
CONFIG_CRYPTO_SHA256=y
|
|
CONFIG_CRYPTO_SHA512=y
|
|
CONFIG_CRYPTO_AES=y
|
|
# CONFIG_CRYPTO_ANSI_CPRNG is not set
|
|
CONFIG_CRYPTO_DEV_FSL_CAAM=y
|